Commit adb08c68 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Display page source upon error only if it's not an instance of BaseException

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46013 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4b9e628
......@@ -70,9 +70,10 @@ class BenchmarkProcess(multiprocessing.Process):
try:
target(result, self._browser)
except:
except BaseException, e:
msg = "%s: %s" % (target, traceback.format_exc())
if self._argument_namespace.enable_debug:
if (self._argument_namespace.enable_debug and isinstance(e, Exception)):
try:
msg += self._browser.normalized_contents
except:
......
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