Skip to content

Commit 608f3ce

Browse files
authored
Merge pull request #2727 from tisnik/lcore-3518
LCORE-3518: Don't need to catch exception and silently pass them
2 parents 0cece04 + babb0ba commit 608f3ce

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)