]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/examples/p2p/p2p_flush.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / wpa_supplicant / examples / p2p / p2p_flush.py
index ff8509d6053d5644db8fa7b15371a70ba74991ff..5dfe642c9f9d9bcc476d5f79e30d6796d91b9723 100644 (file)
@@ -81,7 +81,7 @@ class P2P_Flush (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