From 9abf1d4b366e5dfdcdeea7df4bcc8c47e973714d Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Thu, 19 Oct 2023 09:07:12 -0400 Subject: [PATCH] autotest: webserver.py: uninstall handler if final_check throws --- autotest/pymod/webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotest/pymod/webserver.py b/autotest/pymod/webserver.py index 934769ded9b9..16dfa634493a 100755 --- a/autotest/pymod/webserver.py +++ b/autotest/pymod/webserver.py @@ -50,8 +50,8 @@ def install_http_handler(handler_instance): custom_handler = handler_instance try: yield - finally: handler_instance.final_check() + finally: custom_handler = None