]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/hwsim/wlantest.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / tests / hwsim / wlantest.py
index 10bb45fea282c6576142cfea7471f1609e7f171f..75dcdb5683c2d5fb1b7f5247f3150fb7db60c470 100644 (file)
@@ -142,7 +142,7 @@ class Wlantest:
     def get_bss_counter(self, field, bssid):
         try:
             res = self.cli_cmd(["get_bss_counter", field, bssid])
-        except Exception, e:
+        except Exception as e:
             return 0
         if "FAIL" in res:
             return 0