Skip to content

Commit babb0ba

Browse files
committed
Don't need to catch exception and silently pass them
1 parent 0c69603 commit babb0ba

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎tests/unit/test_configuration.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ def _reset_app_config_between_tests() -> Generator:
3232
AppConfig()._quota_limiters to an empty list, ignoring any exceptions, then
3333
yields control to the test and repeats the cleanup after the test.
3434
"""
35-
try:
36-
AppConfig()._configuration = None # type: ignore[attr-defined]
37-
AppConfig()._quota_limiters = [] # type: ignore[attr-defined]
38-
except Exception:
39-
pass
35+
AppConfig()._configuration = None # type: ignore[attr-defined]
36+
AppConfig()._quota_limiters = [] # type: ignore[attr-defined]
4037
yield
4138
# ensure clean state after each test
4239
try:

0 commit comments

Comments
 (0)