From 3112ea220f19860c567ae99f971500ab49a78d7a Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Tue, 28 Nov 2023 14:57:07 -0800 Subject: [PATCH] x-api-key not set for anonymous --- mpcontribs-client/mpcontribs/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpcontribs-client/mpcontribs/client/__init__.py b/mpcontribs-client/mpcontribs/client/__init__.py index 7a8bab565..f83a9e79e 100644 --- a/mpcontribs-client/mpcontribs/client/__init__.py +++ b/mpcontribs-client/mpcontribs/client/__init__.py @@ -682,7 +682,7 @@ def _load(protocol, host, headers_json, project, version): projects = sorted(d["name"] for d in resp["data"]) projects_json = ujson.dumps(projects) # expand regex-based query parameters for `data` columns - spec = _expand_params(protocol, host, version, projects_json, apikey=headers["x-api-key"]) + spec = _expand_params(protocol, host, version, projects_json, apikey=headers.get("x-api-key")) spec.http_client.session.headers.update(headers) return spec