Skip to content

Commit 0396283

Browse files
committed
flake8: Fix bare except in try/catch
1 parent e8a6e01 commit 0396283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_ext/aafig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def render_aafigure(app, text, options):
183183
try:
184184
f = open(metadata_fname, 'r')
185185
extra = f.read()
186-
except:
186+
except Exception:
187187
raise AafigError()
188188
finally:
189189
if f is not None:

0 commit comments

Comments
 (0)