diff --git a/setup.py b/setup.py index 44e35e9..92d9983 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/src/__init__.py b/src/__init__.py index fe757a2..b42351a 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -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.