diff --git a/tests/run_console_tests.py b/tests/run_console_tests.py
index 0ce64d3fc9..926998ff65 100755
--- a/tests/run_console_tests.py
+++ b/tests/run_console_tests.py
@@ -39,6 +39,6 @@ print "Tests skipped: %s" % c.skipped
 print "Tests with errors: %s" % c.errors
 
 if (len(c.failures)+len(c.errors)+len(c.skipped)) != 0:
-	raise Exception(Build failed)
+	raise Exception("Build failed")