Commit b62e04e8 authored by Mindiell's avatar Mindiell

Moved encoding in debug

parent 745b3174
......@@ -39,7 +39,7 @@ class Utils(object):
@classmethod
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")))
@classmethod
def debug(cls, message):
......@@ -500,7 +500,7 @@ class Wantzel(object):
entry.link.encode("utf-8")
))
Utils.debug(entry.published_parsed)
Utils.debug(entry.title.encode("utf-8"))
Utils.debug(entry.title)
# Save last_entry_published
self.last_entry_published = entry.published_parsed
last_entry_published = time.strftime(
......
Markdown is supported
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