diff --git a/aircox/context_processors/__init__.py b/aircox/context_processors/__init__.py index e79119a..7147c88 100644 --- a/aircox/context_processors/__init__.py +++ b/aircox/context_processors/__init__.py @@ -1,3 +1,4 @@ def station(request): station = request.station - return {"station": station, "audio_streams": station.streams} + audio_streams = station.streams if station else None + return {"station": station, "audio_streams": audio_streams}