Skip to content

Commit

Permalink
v2.0.1 - fixes #12 - unicode error
Browse files Browse the repository at this point in the history
  • Loading branch information
raghur committed Mar 10, 2018
1 parent cd14c99 commit a38a415
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blogger/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def getFrontMatter(item, format="toml"):


def printPosts(item, fields, docFormat=None, writeToFiles=False):
template = """+++
template = u"""+++
{0}
+++
Expand All @@ -85,7 +85,7 @@ def printPosts(item, fields, docFormat=None, writeToFiles=False):
format="html")
content = template.format(getFrontMatter(item),
converted).encode('utf-8',
'ignore')
errors='replace')
with open(filename, "wb") as outputfile:
outputfile.write(content)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def readme():


setup(name="EasyBlogger",
version="2.0.0",
version="2.0.1",
author="Raghu Rajagopalan",
author_email="[email protected]",
description=("A (very) easy CLI interface to Blogger blogs"),
Expand Down

0 comments on commit a38a415

Please sign in to comment.