aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples/wpas-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/examples/wpas-test.py')
-rwxr-xr-xwpa_supplicant/examples/wpas-test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/examples/wpas-test.py b/wpa_supplicant/examples/wpas-test.py
index fd7f73d..31713ca 100755
--- a/wpa_supplicant/examples/wpas-test.py
+++ b/wpa_supplicant/examples/wpas-test.py
@@ -37,12 +37,12 @@ def main():
path = None
try:
path = wpas.getInterface(ifname)
- except dbus.dbus_bindings.DBusException, exc:
+ except dbus.dbus_bindings.DBusException as exc:
if str(exc) != "wpa_supplicant knows nothing about this interface.":
raise exc
try:
path = wpas.addInterface(ifname, {'driver': dbus.Variant('wext')})
- except dbus.dbus_bindings.DBusException, exc:
+ except dbus.dbus_bindings.DBusException as exc:
if str(exc) != "wpa_supplicant already controls this interface.":
raise exc