From f04216c367ba82dc8c296ee20375fa4fc186594a Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 1 Jan 2024 18:08:30 +0000 Subject: [PATCH] Operator can be missing --- agenda/accommodation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenda/accommodation.py b/agenda/accommodation.py index 23b4f0b..3ce4b9e 100644 --- a/agenda/accommodation.py +++ b/agenda/accommodation.py @@ -16,7 +16,7 @@ def get_events(filepath: str) -> list[Event]: title="🧳" + ( f'{item["location"]} Airbnb' - if item["operator"] == "airbnb" + if item.get("operator") == "airbnb" else item["name"] ), url=item.get("url"),