actions: Fix logging issue with unicode in check_message errors.

This doesn't fix the root problem, but it means we'll get a more
correct traceback when future problems happen.
This commit is contained in:
Tim Abbott
2017-07-06 16:05:02 -07:00
parent dc9a41c543
commit 73b05cdbb2

View File

@@ -1371,7 +1371,7 @@ def _internal_prep_message(realm, sender, recipient_type_name, parsed_recipients
return check_message(sender, get_client("Internal"), recipient_type_name,
parsed_recipients, subject, content, realm=realm)
except JsonableError as e:
logging.error("Error queueing internal message by %s: %s" % (sender.email, str(e)))
logging.error(u"Error queueing internal message by %s: %s" % (sender.email, e))
return None