Operator can be missing
This commit is contained in:
parent
bfc368387b
commit
f04216c367
|
@ -16,7 +16,7 @@ def get_events(filepath: str) -> list[Event]:
|
||||||
title="🧳"
|
title="🧳"
|
||||||
+ (
|
+ (
|
||||||
f'{item["location"]} Airbnb'
|
f'{item["location"]} Airbnb'
|
||||||
if item["operator"] == "airbnb"
|
if item.get("operator") == "airbnb"
|
||||||
else item["name"]
|
else item["name"]
|
||||||
),
|
),
|
||||||
url=item.get("url"),
|
url=item.get("url"),
|
||||||
|
|
Loading…
Reference in a new issue