mirror of
https://github.com/gryf/wicd.git
synced 2025-12-29 09:52:31 +01:00
added value to be passed if there is no essid/bssid
This commit is contained in:
@@ -205,10 +205,10 @@ class Controller(object):
|
||||
""" Disconnect from the network. """
|
||||
iface = self.iface
|
||||
# mac and name need to be strings
|
||||
if mac == None:
|
||||
mac = ''
|
||||
if name == None:
|
||||
name = ''
|
||||
if mac in (None, ''):
|
||||
mac = 'X'
|
||||
if name in (None, ''):
|
||||
name = 'X'
|
||||
misc.ExecuteScripts(wpath.predisconnectscripts, self.debug,
|
||||
extra_parameters=(nettype, name, mac))
|
||||
if self.pre_disconnect_script:
|
||||
|
||||
Reference in New Issue
Block a user