From 0872e1b329da6267814374ed8bfb72bfab374b24 Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Sat, 24 Oct 2009 01:03:29 -0400 Subject: [PATCH] Handle essids that are made up of numbers. Thanks to anish for the patch. --- wicd/wnettools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wicd/wnettools.py b/wicd/wnettools.py index 02ee0de..eaa9be5 100644 --- a/wicd/wnettools.py +++ b/wicd/wnettools.py @@ -844,7 +844,7 @@ class BaseWirelessInterface(BaseInterface): essid -- essid to set the interface to """ - cmd = ['iwconfig', self.iface, 'essid', essid] + cmd = ['iwconfig', self.iface, 'essid', str(essid)] if self.verbose: print str(cmd) misc.Run(cmd) @@ -1055,7 +1055,7 @@ class BaseWirelessInterface(BaseInterface): if not wpa_pass_path: return None key_pattern = re.compile('network={.*?\spsk=(.*?)\n}.*', re.I | re.M | re.S) - cmd = [wpa_pass_path, network['essid'], str(network['key'])] + cmd = [wpa_pass_path, str(network['essid']), str(network['key'])] if self.verbose: print cmd return misc.RunRegex(key_pattern, misc.Run(cmd))