Skip to content

Commit df9ced4

Browse files
author
Benedikt Schmitt
committed
*fixed* python2 setup error
1 parent b99d5e0 commit df9ced4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
# ------------------------------------------------
3636
try:
3737
long_description = open("README.md").read()
38-
except OSError:
38+
except (OSError, IOError):
3939
long_description = "not available"
4040

4141
try:
42-
license_ = open("LICENSE.rst").read()
43-
except OSError:
42+
license_ = open("LICENSE").read()
43+
except (OSError, IOError):
4444
license_ = "not available"
4545

4646
setup(

0 commit comments

Comments
 (0)