aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/wpasupplicant.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/wpasupplicant.py')
-rw-r--r--tests/hwsim/wpasupplicant.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 1698fca..5b57b76 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -438,7 +438,7 @@ class WpaSupplicant:
try:
[name,value] = l.split('=', 1)
vals[name] = value
- except ValueError, e:
+ except ValueError as e:
logger.info(self.ifname + ": Ignore unexpected STATUS line: " + l)
return vals
@@ -507,7 +507,7 @@ class WpaSupplicant:
try:
[name,value] = l.split('=', 1)
vals[name] = value
- except ValueError, e:
+ except ValueError as e:
logger.info(self.ifname + ": Ignore unexpected MIB line: " + l)
return vals