Sorry, fix broke actually more than it fixed. Adding AttributeError in

radiobrowser.get_playable_url exception should fix that.
This commit is contained in:
Canuma 2021-11-24 07:32:20 +01:00
parent e02cd6a85f
commit 87ef25f482

View file

@ -42,7 +42,7 @@ class Station:
try:
playable_url_json = request('url/' + generic.get_stationid_without_prefix(self.id))[0]
self.url = playable_url_json['url']
except (IndexError, KeyError):
except (IndexError, KeyError,AttributeError):
logging.error("Could not retrieve first playlist item for station with id '%s'", self.id)