]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/hwsim/test_fils.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / tests / hwsim / test_fils.py
index 7d8b5f45c051235dd0cb07c96340937c89958c7c..f4c5af2a9083a9847422e36b27fe591c8e1aa389 100644 (file)
@@ -198,7 +198,7 @@ def test_fils_sk_pmksa_caching_ocv(dev, apdev, params):
     params['ocv'] = '1'
     try:
         hapd = hostapd.add_ap(apdev[0]['ifname'], params)
-    except Exception, e:
+    except Exception as e:
         if "Failed to set hostapd parameter ocv" in str(e):
             raise HwsimSkip("OCV not supported")
         raise