diff --git a/daemon.py b/daemon.py index 073c504..899eb9c 100644 --- a/daemon.py +++ b/daemon.py @@ -333,7 +333,7 @@ class ConnectionWizard(dbus.service.Object): if fresh: self.Scan() #self.AutoConnectScan() # Also scans for hidden networks - if self.CheckPluggedIn() == True and self.: + if self.CheckPluggedIn() == True: if self.GetWiredAutoConnectMethod() == 2: self.LaunchChooser() else: diff --git a/wnettools.py b/wnettools.py index 4b65f1e..7dca365 100644 --- a/wnettools.py +++ b/wnettools.py @@ -639,5 +639,5 @@ class WirelessInterface(Interface): output = misc.Run(cmd) network = misc.RunRegex(re.compile('.*ESSID:"(.*?)"',re.DOTALL | re.I | re.M | re.S), output) if network is not None: - network = network.encode('utf-8') + network = misc.to_unicode(network) return network