aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/benchmark.py2
-rw-r--r--src/mysql.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 5e32c89..956e4b5 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -252,7 +252,7 @@ class Benchmark (object):
print()
print_debug("Stdout:\n" + res.stdout)
print_debug("Stderr:\n" + res.stderr)
- raise Exception("{} failed with exit code {} for {}".format(actual_cmd, res.returncode), tname)
+ raise Exception("{} failed with exit code {} for {}".format(actual_cmd, res.returncode, tname))
if "ERROR: ld.so" in res.stderr:
print()
diff --git a/src/mysql.py b/src/mysql.py
index fa1c81c..e3f1f0f 100644
--- a/src/mysql.py
+++ b/src/mysql.py
@@ -126,7 +126,7 @@ class Benchmark_MYSQL(Benchmark):
print_debug("Stdout:", p.stdout, file=sys.stderr)
print_debug("Stderr:", p.stderr, file=sys.stderr)
self.terminate_server()
- raise("Preparing test tables failed with:", p.returncode)
+ raise Exception("Preparing test tables failed with:", p.returncode)
self.terminate_server()