From 814ad94b5f462bfda8a7c8a599dc6c35eaf3ee93 Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Sat, 13 Apr 2024 14:09:36 -0400 Subject: [PATCH] fix edge case when parsing remote json --- core/json.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/json.py b/core/json.py index 1a71e973f..9a8a0a0ed 100644 --- a/core/json.py +++ b/core/json.py @@ -20,6 +20,8 @@ def json_from_response(response: Response) -> dict | None: charset = None for parameter in parameters: + if "=" not in parameter: + continue key, value = parameter.split("=") if key.strip() == "charset": charset = value.strip()