Catch Module Not Found Error for Pypandoc

This commit is contained in:
Tanja Bayer
2021-08-17 17:46:32 +02:00
committed by GitHub
parent c2af306fd0
commit 25d418b99e

View File

@@ -27,7 +27,7 @@ def find_version(*file_paths):
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
except (IOError, ImportError, ModuleNotFoundError):
long_description = open('README.md').read()
#import pypandoc