summaryrefslogtreecommitdiffstats
path: root/Logs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Logs.py')
-rw-r--r--Logs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Logs.py b/Logs.py
index 11dc34f..298411d 100644
--- a/Logs.py
+++ b/Logs.py
@@ -237,7 +237,10 @@ class formatter(logging.Formatter):
if rec.levelno >= logging.INFO:
# the goal of this is to format without the leading "Logs, hour" prefix
if rec.args:
- return msg % rec.args
+ try:
+ return msg % rec.args
+ except UnicodeDecodeError:
+ return msg.encode('utf-8') % rec.args
return msg
rec.msg = msg