Commit 46aeea67 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Catch exceptions raised when instanciating the browser.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9fa3cbea
......@@ -458,17 +458,12 @@ class BenchmarkProcess(multiprocessing.Process):
if self._argument_namespace.repeat != -1:
signal.signal(signal.SIGTERM, self.stopGracefully)
try:
self._browser = self.getBrowser(result_instance.log_file)
except:
self._logger.error(traceback.format_exc())
raise
exit_status = 0
exit_msg = None
# Create the result CSV file
try:
self._browser = self.getBrowser(result_instance.log_file)
with result_instance as result:
while self._current_repeat != (self._argument_namespace.repeat + 1):
self._logger.info("Iteration: %d" % self._current_repeat)
......
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