Skip to content
Snippets Groups Projects
Verified Commit d9d66531 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: handle missing fallback show setting better

parent 83986937
No related branches found
No related tags found
No related merge requests found
......@@ -826,8 +826,8 @@ def make_virtual_timeslot_entry(*, gap_start: datetime, gap_end: datetime) -> Vi
end=gap_end.strftime("%Y-%m-%dT%H:%M:%S"),
episode_title=radio_settings.fallback_default_pool,
is_virtual=True,
show_id=radio_settings.fallback_show.id,
show_name=radio_settings.fallback_show.name,
show_id=radio_settings.fallback_show.id if radio_settings.fallback_show else None,
show_name=radio_settings.fallback_show.name if radio_settings.fallback_show else None,
start=gap_start.strftime("%Y-%m-%dT%H:%M:%S"),
)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment