Revert "bugfix: added exception handling for server.get_station_by_id"
This reverts commit d7ac887f93
.
This commit is contained in:
parent
d7ac887f93
commit
e02cd6a85f
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue