diff --git a/wicd/networking.py b/wicd/networking.py index 5878cbe..4e38a87 100644 --- a/wicd/networking.py +++ b/wicd/networking.py @@ -215,8 +215,8 @@ class Controller(object): if self.pre_disconnect_script: print 'Running pre-disconnect script' misc.ExecuteScript(expand_script_macros(self.pre_disconnect_script, - 'pre-disconnection', (mac, - name)), + 'pre-disconnection', + mac, name), self.debug) iface.ReleaseDHCP() iface.SetAddress('0.0.0.0') @@ -229,7 +229,7 @@ class Controller(object): print 'Running post-disconnect script' misc.ExecuteScript(expand_script_macros(self.post_disconnect_script, 'post-disconnection', - (mac, name)), + mac, name), self.debug) def ReleaseDHCP(self):