Merge "Fixed error message for recoverable exceptions"

This commit is contained in:
Jenkins 2014-08-05 01:34:42 +00:00 committed by Gerrit Code Review
commit 9584680df4
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ def handle(request, message=None, redirect=None, ignore=False,
# If the message has a placeholder for the exception, fill it in
elif message and "%(exc)s" in message:
message = encoding.force_unicode(message) % {"exc": log_entry}
message = encoding.force_unicode(message)
if message:
message = encoding.force_unicode(message)
if issubclass(exc_type, UNAUTHORIZED):
if ignore: