]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/examples/p2p/p2p_find.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / wpa_supplicant / examples / p2p / p2p_find.py
index 973d46ab0f4b9d005368a54bfebe83b35f26a891..9c860d1e13a36b02193f43af1f61161801d9f3e3 100644 (file)
@@ -85,7 +85,7 @@ class P2P_Find (threading.Thread):
                try:
                        self.path = self.wpas.GetInterface(
                                        self.interface_name)
-               except dbus.DBusException, exc:
+               except dbus.DBusException as exc:
                        error = 'Error:\n  Interface ' + self.interface_name \
                                + ' was not found'
                        print error