pytest: add comment to empty except branch

To silence GitHub CodeQL.

Follow-up to 4aa8cc3c4a #21924
This commit is contained in:
Viktor Szakats 2026-06-09 12:33:24 +02:00
parent bbb226b226
commit 9dcc57b801
No known key found for this signature in database

View file

@ -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):