aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples/p2p/p2p_connect.py
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/examples/p2p/p2p_connect.py')
-rw-r--r--wpa_supplicant/examples/p2p/p2p_connect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/examples/p2p/p2p_connect.py b/wpa_supplicant/examples/p2p/p2p_connect.py
index 59b0a9d..cb12081 100644
--- a/wpa_supplicant/examples/p2p/p2p_connect.py
+++ b/wpa_supplicant/examples/p2p/p2p_connect.py
@@ -118,7 +118,7 @@ class P2P_Connect():
{'Ifname': ifname, 'Driver': 'test'})
time.sleep(1)
- except dbus.DBusException, exc:
+ except dbus.DBusException as exc:
if not str(exc).startswith(
self.wpas_dbus_interface + \
".InterfaceExists:"):
@@ -209,7 +209,7 @@ class P2P_Connect():
result_pin = self.p2p_interface.Connect(
self.p2p_connect_arguements)
- except dbus.DBusException, exc:
+ except dbus.DBusException as exc:
raise exc
if (self.wps_method == 'pin' and \