Skip to content

Commit 7418230

Browse files
committed
fix readme read
1 parent c4eaf48 commit 7418230

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ def convert_images():
4040
Convert HTML images to RST so they survive pandoc conversion
4141
"""
4242
images = []
43+
try:
44+
readme = open('README.md')
45+
except IOError:
46+
return images
47+
4348
with open('README-tmp.md', 'w') as output:
4449
img = None
45-
for row in open('README.md'):
50+
for row in readme:
4651
if not row.startswith('<img') and img is None:
4752
output.write(row)
4853
continue

0 commit comments

Comments
 (0)