1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

fixing exception for cli/wicd-cli.py --wireless -c

This commit is contained in:
fox
2011-08-09 15:31:30 +02:00
parent 4cda4704c8
commit f01dad5a51

View File

@@ -175,6 +175,7 @@ if options.disconnect:
op_performed = True
if options.connect:
check = None
if options.wireless and options.network > -1:
is_valid_wireless_network_id(options.network)
name = wireless.GetWirelessProperty(options.network, 'essid')
@@ -194,6 +195,7 @@ if options.connect:
# update user on what the daemon is doing
last = None
if check is not None:
while check():
next = message()
if next != last: