mirror of
https://github.com/deepinsight/insightface.git
synced 2026-05-19 15:41:33 +00:00
Catch Module Not Found Error for Pypandoc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user