Commit b62e04e8 authored by Mindiell's avatar Mindiell
Browse files

Moved encoding in debug

parent 745b3174
......@@ -39,7 +39,7 @@ class Utils(object):
def log(cls, message):
with open(LOG_FILE, 'a') as f:
f.write("%s: %s\n" % (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), message))
f.write("%s: %s\n" % (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), message.encode("utf-8")))
def debug(cls, message):
......@@ -500,7 +500,7 @@ class Wantzel(object):"utf-8")
# Save last_entry_published
self.last_entry_published = entry.published_parsed
last_entry_published = time.strftime(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment