1
0
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:
Adam Blackburn
2009-08-09 18:27:47 -05:00
parent 218c6a3aef
commit 0c111ee635

View File

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