Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jinja2/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def fake_traceback( # type: ignore
# the new traceback without this frame.
try:
exec(code, globals, locals)
except BaseException:
except BaseException: # noqa: B036
return sys.exc_info()[2].tb_next # type: ignore


Expand Down
2 changes: 1 addition & 1 deletion tests/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_weak_references(self, prefix_loader):
import gc

gc.collect()
except BaseException:
except ModuleNotFoundError:
pass

assert name not in sys.modules
Expand Down