Skip to content
Browse files

Merge pull request #70 from EvanKrall/catch_all_exceptions

Catch all exceptions in HTTPReporter
  • Loading branch information...
2 parents 15f99d6 + 2f8ed79 commit 0c237327672d0c8070b0002539c222da6d2b48a2 @ayust ayust committed
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 0c23732

Please sign in to comment.
Something went wrong with that request. Please try again.