Skip to content

Commit ccf2d46

Browse files
fix: catch pandoc import error
1 parent b216df8 commit ccf2d46

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77

88
install_requires = ['requests==2.11.1', 'six==1.10.0', 'tuspy==0.1']
99

10-
long_description = pypandoc.convert('README.md', 'rst')
11-
long_description = long_description.replace("\r","")
10+
try:
11+
import pypandoc
12+
long_description = pypandoc.convert('README.md', 'rst').replace("\r", "")
13+
except ImportError:
14+
long_description = ''
1215

1316
setup(
1417
name='pytransloadit',

0 commit comments

Comments
 (0)