From 1b526c837e83d5e35d14eadde162c7608ab9e83f Mon Sep 17 00:00:00 2001 From: gokcegrbl Date: Fri, 31 May 2019 16:27:51 +0000 Subject: [PATCH] Comment on bare except usage in _compat.py (Fixes pallets/flask#3227) --- flask/_compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flask/_compat.py b/flask/_compat.py index 952af569..6c11f3f1 100644 --- a/flask/_compat.py +++ b/flask/_compat.py @@ -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