This commit is contained in:
Canuma 2021-11-24 07:33:27 +01:00 committed by GitHub
commit 03e47c37d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)