aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_dynamic.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_ap_dynamic.py')
-rw-r--r--tests/hwsim/test_ap_dynamic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_ap_dynamic.py b/tests/hwsim/test_ap_dynamic.py
index 2fef021..9b6ba11 100644
--- a/tests/hwsim/test_ap_dynamic.py
+++ b/tests/hwsim/test_ap_dynamic.py
@@ -206,7 +206,7 @@ def invalid_ap(ap):
try:
hapd.enable()
started = True
- except Exception, e:
+ except Exception as e:
started = False
if started:
raise Exception("ENABLE command succeeded unexpectedly")
@@ -516,7 +516,7 @@ def test_ap_duplicate_bssid(dev, apdev):
try:
hostapd.add_bss(apdev[0], ifname2, 'bss-2-dup.conf')
raise Exception("BSS add succeeded unexpectedly")
- except Exception, e:
+ except Exception as e:
if "Could not add hostapd BSS" in str(e):
pass
else: