Comment on bare except usage in _compat.py

(Fixes pallets/flask#3227)
This commit is contained in:
gokcegrbl 2019-05-31 16:27:51 +00:00
parent 4d23ae208d
commit 3259d5b61c

View file

@ -98,6 +98,8 @@ if hasattr(sys, "pypy_version_info"):
with _Mgr():
raise AssertionError()
except:
# We intentionally use a bare except here. See the comment above
# regarding a pypy bug as to why.
raise
except TypeError:
BROKEN_PYPY_CTXMGR_EXIT = True