We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc75f50 commit dd46bd6Copy full SHA for dd46bd6
1 file changed
setup.py
@@ -37,7 +37,11 @@
37
from re import compile as comp
38
from unittest import TestLoader
39
40
-from pypandoc import convert
+try:
41
+ from pypandoc import convert
42
+except (IOError, ImportError): # pragma: no cover
43
+ pass
44
+
45
from setuptools import setup
46
47
@@ -82,7 +86,10 @@ def _get_long_description():
82
86
This function return the long description.
83
87
"""
84
88
85
- return convert("README.md", "rst")
89
+ try:
90
+ return convert("README.md", "rst")
91
+ except NameError: # pragma: no cover
92
+ return open("README.md", encoding="utf-8").read() # pragma: no cover
93
94
95
setup(
0 commit comments