]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/hwsim/hwsim.py
tests: Use python3 compatible "except" statement
[thirdparty/hostap.git] / tests / hwsim / hwsim.py
index e21c814f2e8e6928a61ac09d34b72d14884b2bdb..23bfe32e98ca439c77794efe453fffaf633e1d55 100644 (file)
@@ -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