diff --git a/setup.py b/setup.py index e3f79a9..192c625 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ if sys.argv[-1] == 'tag': try: readme = open('README.rst').read() history = open('CHANGELOG.rst').read().replace('.. :changelog:', '') -except FileNotFoundError: +except IOError: # Protects against running python from a different dir to setup.py, # e.g. on travis readme = ''