From 50b91fe5c7c950f0ea2545a5df65328e47bd9ca1 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 22 Mar 2023 15:16:28 -0700 Subject: [PATCH] portico: Fix incorrect fallback contributors data type. Previously, using this without having run fetch-contributors-data would throw an exception trying to call .filter on an empty dictionary. --- corporate/views/portico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corporate/views/portico.py b/corporate/views/portico.py index 22cedc0ebc..cd435f3d64 100644 --- a/corporate/views/portico.py +++ b/corporate/views/portico.py @@ -92,7 +92,7 @@ def team_view(request: HttpRequest) -> HttpResponse: with open(settings.CONTRIBUTOR_DATA_FILE_PATH, "rb") as f: data = orjson.loads(f.read()) except FileNotFoundError: - data = {"contributors": {}, "date": "Never ran."} + data = {"contributors": [], "date": "Never ran."} return TemplateResponse( request,