Fix AttributeError for exceptions

This commit is contained in:
Croneter 2018-05-01 16:37:27 +02:00
parent ff72648570
commit 1a3a94894b

View file

@ -437,9 +437,8 @@ def get_playlist_details_from_xml(playlist, xml):
playlist.selectedItemOffset = xml.attrib.get( playlist.selectedItemOffset = xml.attrib.get(
'%sSelectedItemOffset' % playlist.kind) '%sSelectedItemOffset' % playlist.kind)
LOG.debug('Updated playlist from xml: %s', playlist) LOG.debug('Updated playlist from xml: %s', playlist)
except (TypeError, KeyError, AttributeError) as err: except (TypeError, KeyError, AttributeError):
raise PlaylistError('Could not get playlist details from xml: %s', raise PlaylistError('Could not get playlist details from xml')
err.strerror)
def update_playlist_from_PMS(playlist, playlist_id=None, xml=None): def update_playlist_from_PMS(playlist, playlist_id=None, xml=None):