aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_rfkill.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_rfkill.py')
-rw-r--r--tests/hwsim/test_rfkill.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_rfkill.py b/tests/hwsim/test_rfkill.py
index d137531..8a2a5e2 100644
--- a/tests/hwsim/test_rfkill.py
+++ b/tests/hwsim/test_rfkill.py
@@ -22,7 +22,7 @@ def get_rfkill(dev):
for r, s, h in RFKill.list():
if r.name == phy:
return r
- except Exception, e:
+ except Exception as e:
raise HwsimSkip("No rfkill available: " + str(e))
raise HwsimSkip("No rfkill match found for the interface")