Log process exceptions using ASCII mode to avoid issues with string concatenation.

This commit is contained in:
Usman Muzaffar 2018-10-11 13:13:08 +01:00 committed by Dave Page
parent 4a6426d3e7
commit 3f16a0c52c

View File

@ -63,7 +63,7 @@ else:
def _log_exception():
type_, value_, traceback_ = info = sys.exc_info()
with open(_log_file, 'ab') as fp:
with open(_log_file, 'a') as fp:
from traceback import format_exception
res = ''.join(
format_exception(type_, value_, traceback_)