Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #510 from willkg/1139545-tweak-handler
Browse files Browse the repository at this point in the history
[bug 1139545] Handle all exceptions
  • Loading branch information
willkg committed Mar 5, 2015
2 parents 55bbcea + 92ce3b6 commit c8bd9ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fjord/wsgi_utils.py
Expand Up @@ -64,6 +64,8 @@ def handle_uncaught_exception(self, request, resolver, exc_info):
except (UnicodeDecodeError, UnicodeEncodeError):
# For binary, we say, 'BINARY CONTENT'
postbody = 'BINARY OR NON-UTF-8 CONTENT'
except Exception as exc:
postbody = 'Error figuring out postbody %r' % exc

# The logger.error generates a record which can get handled by
# the AdminEmailHandler. Overriding all that machinery is
Expand Down

0 comments on commit c8bd9ef

Please sign in to comment.