mirror of
https://github.com/gryf/wicd.git
synced 2026-03-26 05:43:33 +01:00
experimental branch:
- Tray icon fixes from trunk - Handle possible failure in wpactrl - Format some docstrings
This commit is contained in:
@@ -394,7 +394,12 @@ class WirelessInterface(Interface, wnettools.BaseWirelessInterface):
|
||||
MAX_DISCONNECTED_TIME = 3
|
||||
disconnected_time = 0
|
||||
while (time.time() - auth_time) < MAX_TIME:
|
||||
status = wpa.request("STATUS").split("\n")
|
||||
try:
|
||||
status = wpa.request("STATUS").split("\n")
|
||||
except:
|
||||
print "wpa_supplicant status query failed."
|
||||
return False
|
||||
|
||||
if self.verbose:
|
||||
print 'wpa_supplicant ctrl_interface status query is %s' % str(status)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user