Fix wrong exception type

This commit is contained in:
croneter 2018-02-03 15:46:41 +01:00
parent bee845ca95
commit c6edaf4304

View file

@ -119,7 +119,7 @@ def update_playqueue_from_PMS(playqueue,
playqueue.clear() playqueue.clear()
try: try:
PL.get_playlist_details_from_xml(playqueue, xml) PL.get_playlist_details_from_xml(playqueue, xml)
except KeyError: except PL.PlaylistError:
LOG.error('Could not get playqueue ID %s', playqueue_id) LOG.error('Could not get playqueue ID %s', playqueue_id)
return return
playqueue.repeat = 0 if not repeat else int(repeat) playqueue.repeat = 0 if not repeat else int(repeat)