From 8a843a2cca5e254f323b6b83d75c95ef018971cb Mon Sep 17 00:00:00 2001 From: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:04:33 +0000 Subject: [PATCH] keep plain-string metrics --- HTTPArchive/httparchive.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/HTTPArchive/httparchive.py b/HTTPArchive/httparchive.py index 3b54280c1..aaa32342e 100644 --- a/HTTPArchive/httparchive.py +++ b/HTTPArchive/httparchive.py @@ -129,12 +129,8 @@ def get_custom_metrics(page, wptid, max_size=None): try: value = json.loads(value) except ValueError: - logging.warning( - "ValueError: Unable to parse custom metric %s as JSON for %s", - metric, - wptid, - ) - continue + # Value is a plain string, not JSON-encoded. Keep it as-is. + pass except RecursionError: logging.warning( "RecursionError: Unable to parse custom metric %s as JSON for %s",