Skip to content
Myr

Comment on bare except usage in _compat.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

(Fixes pallets/flask#3227)

authored by gokcegrbl · committed by gokcegrbl · parent 240e398 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:flask/_compat.py+2 added
96 unmodified lines
97 try:98 with _Mgr():99 raise AssertionError()100 except:101 # We intentionally use a bare except here. See the comment above102 # regarding a pypy bug as to why.103 raise104 except TypeError:105 BROKEN_PYPY_CTXMGR_EXIT = True106 except AssertionError:
10 unmodified lines