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