]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/hwsim/test_ap_open.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / tests / hwsim / test_ap_open.py
index de7c6d4160e2f81b4010bceb76b263a34789a56f..3907925352ea110fff62e93213c44fc273bbbd96 100644 (file)
@@ -330,7 +330,7 @@ def _test_ap_open_wpas_in_bridge(dev, apdev):
     try:
         wpas.interface_add(ifname, br_ifname=br_ifname)
         raise Exception("Interface addition succeeded unexpectedly")
-    except Exception, e:
+    except Exception as e:
         if "Failed to add" in str(e):
             logger.info("Ignore expected interface_add failure due to missing bridge interface: " + str(e))
         else: