]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/examples/p2p/p2p_group_add.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / wpa_supplicant / examples / p2p / p2p_group_add.py
index 5c8fdafdfd9a317cb9c5db20ff382c0b0284f16e..4e64892cde866613f4f5a8c2be18089e19b77d39 100644 (file)
@@ -99,7 +99,7 @@ class P2P_Group_Add (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