Browse files

Handle all exceptions in the HTTPReporter worker thread.

  • Loading branch information...
1 parent 54269fe commit 62a8e3b5f9cd6c943aec690677d13ec4cbe989c4 @EvanKrall EvanKrall committed Apr 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 testify/plugins/http_reporter.py
View
2 testify/plugins/http_reporter.py
@@ -27,6 +27,8 @@ def report_results(self):
urllib2.urlopen('http://%s/results?runner=%s' % (self.connect_addr, self.runner_id), json.dumps(result))
except urllib2.HTTPError, e:
logging.error('Skipping returning results for test %s because of error: %s' % (result['method']['full_name'], e.read()))
+ except Exception, e:
+ logging.error('Skipping returning results for test %s because of unknown error: %s' % (result['method']['full_name'], e))
self.result_queue.task_done()

0 comments on commit 62a8e3b

Please sign in to comment.