Use except Exception where Py2/3 disagrees

This commit is contained in:
Kagami Sascha Rosylight 2020-06-21 04:30:23 +02:00
parent d01648d637
commit 57eed5baa4
4 changed files with 6 additions and 6 deletions

View file

@ -26,13 +26,13 @@ here = os.path.dirname(os.path.abspath(__file__))
try:
with open(os.path.join(here, 'README.rst')) as doc:
readme = doc.read()
except FileNotFoundError:
except Exception:
readme = ''
try:
with open(os.path.join(here, 'HISTORY.rst')) as doc:
history = doc.read()
except FileNotFoundError:
except Exception:
history = ''
long_description = readme + '\n\n' + history