Skip to content

Commit

Permalink
Fix unicode encode error on windows (#50).
Browse files Browse the repository at this point in the history
  • Loading branch information
phseiff committed Jul 24, 2021
1 parent 789d5c0 commit 04ca1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='gh_md_to_html',
version='1.17.3',
version='1.17.4',
description='Github-flavored Markdown to html python and command line interface.',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ def __call__(self, p, namespace, values, option_string=""):
try:
with open_local("help.txt", "w", encoding='utf-8') as help_file:
help_file.write(help_text)
except OSError:
except (OSError, UnicodeEncodeError):
pass # running an installation installed with sudo.

# Print help text if requested.
Expand Down

0 comments on commit 04ca1e4

Please sign in to comment.