Commit b1712e6c authored by Arnaud Fontaine's avatar Arnaud Fontaine

RuntimeError are only raised internally so no need to display its traceback

parent 2b2bc8db
......@@ -223,8 +223,12 @@ class CSVBenchmarkResult(BenchmarkResult):
if exc_type and not issubclass(exc_type, StopIteration):
msg = "An error occured, see: %s" % self._log_filename_path
self.logger.error("%s:\n%s" % (exc_value,
''.join(traceback.format_tb(traceback_object))))
logged_msg = str(exc_value)
if not issubclass(exc_type, RuntimeError):
logged_msg += ''.join(traceback.format_tb(traceback_object))
self.logger.error(logged_msg)
raise RuntimeError(msg)
from cStringIO import StringIO
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment