]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/hwsim/test_ap_ciphers.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / tests / hwsim / test_ap_ciphers.py
index abed26fe5709651c88360c5c5b2915dc6f434d63..8e5b2d68b3b5703b62b6cc94ba5c04d6cdc000c4 100644 (file)
@@ -485,7 +485,7 @@ def get_rx_spec(phy, gtk=False):
                 continue
             with open(keydir + "/rx_spec") as f:
                 return f.read()
-    except OSError, e:
+    except OSError as e:
         raise HwsimSkip("debugfs not supported in mac80211")
     return None
 
@@ -501,7 +501,7 @@ def get_tk_replay_counter(phy, gtk=False):
                 continue
             with open(keydir + "/replays") as f:
                 return int(f.read())
-    except OSError, e:
+    except OSError as e:
         raise HwsimSkip("debugfs not supported in mac80211")
     return None