From 9dcc57b801385fc598c2a658d83bdef68904a050 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 9 Jun 2026 12:33:24 +0200 Subject: [PATCH] pytest: add comment to empty except branch To silence GitHub CodeQL. Follow-up to 4aa8cc3c4ad567ba5e96d9901ff22238fbe01a0c #21924 --- tests/http/testenv/curl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/http/testenv/curl.py b/tests/http/testenv/curl.py index d8e6a194e0..45fa899ad2 100644 --- a/tests/http/testenv/curl.py +++ b/tests/http/testenv/curl.py @@ -288,6 +288,7 @@ class ExecResult: out = ''.join(self._stdout) self._json_out = json.loads(out) except (json.JSONDecodeError, TypeError, ValueError): + # stdout not guaranteed to be JSON, keep _json_out as None pass def __repr__(self):