From babb0baab9eb423fe173387faca29df35783ed7d Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Thu, 17 Sep 2026 13:44:40 +0200 Subject: [PATCH] Don't need to catch exception and silently pass them --- tests/unit/test_configuration.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/unit/test_configuration.py b/tests/unit/test_configuration.py index f9977893e..7e46e516e 100644 --- a/tests/unit/test_configuration.py +++ b/tests/unit/test_configuration.py @@ -32,11 +32,8 @@ def _reset_app_config_between_tests() -> Generator: AppConfig()._quota_limiters to an empty list, ignoring any exceptions, then yields control to the test and repeats the cleanup after the test. """ - try: - AppConfig()._configuration = None # type: ignore[attr-defined] - AppConfig()._quota_limiters = [] # type: ignore[attr-defined] - except Exception: - pass + AppConfig()._configuration = None # type: ignore[attr-defined] + AppConfig()._quota_limiters = [] # type: ignore[attr-defined] yield # ensure clean state after each test try: