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

[bug 1139545] Handle all exceptions #510

Merged
merged 1 commit into from Mar 5, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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