mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use except Exception where Py2/3 disagrees
This commit is contained in:
parent
d01648d637
commit
57eed5baa4
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue