Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle all exceptions in the HTTPReporter worker thread.

  • Loading branch information...
commit 62a8e3b5f9cd6c943aec690677d13ec4cbe989c4 1 parent 54269fe
@EvanKrall EvanKrall authored
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()
Please sign in to comment.
Something went wrong with that request. Please try again.