aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/hwsim.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/hwsim.py')
-rw-r--r--tests/hwsim/hwsim.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/hwsim.py b/tests/hwsim/hwsim.py
index e21c814..23bfe32 100644
--- a/tests/hwsim/hwsim.py
+++ b/tests/hwsim/hwsim.py
@@ -65,7 +65,7 @@ class HWSimRadio(object):
raise Exception("Failed to create radio (err:%d)" % self._radio_id)
try:
iface = os.listdir('/sys/class/mac80211_hwsim/hwsim%d/net/' % self._radio_id)[0]
- except Exception,e:
+ except Exception as e:
self._controller.destroy_radio(self._radio_id)
raise e
return self._radio_id, iface