mirror of https://github.com/zulip/zulip.git
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.
This commit is contained in:
parent
eb572e525a
commit
50b91fe5c7
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue