1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-29 01:42:33 +01:00

trunk & experimental:

- Make sure all entries in the connection status info list are strings.
This commit is contained in:
imdano
2008-09-21 13:26:46 +00:00
parent 1714444cf7
commit 69932f255c

View File

@@ -192,15 +192,15 @@ class ConnectionStatus(object):
if wired.CheckIfWiredConnecting():
info = ["wired"]
else:
info = ["wireless", wireless.GetCurrentNetwork(iwconfig)]
info = ["wireless", str(wireless.GetCurrentNetwork(iwconfig))]
elif state == misc.WIRELESS:
self.reconnect_tries = 0
info = [wifi_ip, wireless.GetCurrentNetwork(iwconfig),
info = [str(wifi_ip), str(wireless.GetCurrentNetwork(iwconfig)),
str(self._get_printable_sig_strength()),
str(wireless.GetCurrentNetworkID(iwconfig))]
elif state == misc.WIRED:
self.reconnect_tries = 0
info = [wired_ip]
info = [str(wired_ip)]
else:
print 'ERROR: Invalid state!'
return True