From 6f172e582e67ba6b9d93395b0f7cc576281b86b0 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 22 Mar 2019 20:19:07 +0100 Subject: fix some Exceptions --- src/benchmark.py | 2 +- src/mysql.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3