diff --git a/ycast/server.py b/ycast/server.py index a3c1c130998e97ff93917e632b2cb9e709cdbeda..6d963da7d916e6b2b302c9b5242f254b31a15ea5 100644 --- a/ycast/server.py +++ b/ycast/server.py @@ -106,11 +106,8 @@ def get_station_by_id(stationid, additional_info=False): elif station_id_prefix == radiobrowser.ID_PREFIX: station = radiobrowser.get_station_by_id(generic.get_stationid_without_prefix(stationid)) if additional_info: - try: - station.get_playable_url() - return station - except AttributeError: - return None + station.get_playable_url() + return station return None