1
0
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:
imdano
2008-12-06 19:11:43 +00:00
parent fd0a41def6
commit a6acb8a661
3 changed files with 100 additions and 87 deletions

View File

@@ -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)