mirror of
https://github.com/gryf/wicd.git
synced 2026-01-06 22:04:19 +01:00
make sure that SetConnectionStatus is called with an array of only strings
This commit is contained in:
@@ -274,13 +274,15 @@ class ConnectionStatus(object):
|
|||||||
if wired.CheckIfWiredConnecting():
|
if wired.CheckIfWiredConnecting():
|
||||||
info = ["wired"]
|
info = ["wired"]
|
||||||
else:
|
else:
|
||||||
info = ["wireless", wireless.GetCurrentNetwork(iwconfig)]
|
info = ["wireless",
|
||||||
|
misc.noneToBlankString(wireless.GetCurrentNetwork(iwconfig))]
|
||||||
elif state == misc.WIRELESS:
|
elif state == misc.WIRELESS:
|
||||||
self.reconnect_tries = 0
|
self.reconnect_tries = 0
|
||||||
info = [str(wifi_ip), wireless.GetCurrentNetwork(iwconfig),
|
info = [str(wifi_ip),
|
||||||
|
misc.noneToBlankString(wireless.GetCurrentNetwork(iwconfig)),
|
||||||
str(self._get_printable_sig_strength()),
|
str(self._get_printable_sig_strength()),
|
||||||
str(wireless.GetCurrentNetworkID(iwconfig)),
|
str(wireless.GetCurrentNetworkID(iwconfig)),
|
||||||
wireless.GetCurrentBitrate(iwconfig)]
|
misc.noneToBlankString(wireless.GetCurrentBitrate(iwconfig))]
|
||||||
elif state == misc.WIRED:
|
elif state == misc.WIRED:
|
||||||
self.reconnect_tries = 0
|
self.reconnect_tries = 0
|
||||||
info = [str(wired_ip)]
|
info = [str(wired_ip)]
|
||||||
|
|||||||
Reference in New Issue
Block a user