aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_fst_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_fst_config.py')
-rw-r--r--tests/hwsim/test_fst_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_fst_config.py b/tests/hwsim/test_fst_config.py
index 9244740..0c0107c 100644
--- a/tests/hwsim/test_fst_config.py
+++ b/tests/hwsim/test_fst_config.py
@@ -243,7 +243,7 @@ class FstLauncher:
try:
pid = int(pidtxt)
break
- except Exception, e:
+ except Exception as e:
self.logger.debug("kill_pid: No valid PID found: %s" % str(e))
time.sleep(1)
self.logger.debug("kill_pid %s --> pid %d" % (pidfile, pid))
@@ -257,7 +257,7 @@ class FstLauncher:
break
# Wait and check again
time.sleep(1)
- except Exception, e:
+ except Exception as e:
self.logger.debug("Didn't stop the pid=%d. Was it stopped already? (%s)" % (pid, str(e)))