Fix AttributeError for exceptions
This commit is contained in:
parent
ff72648570
commit
1a3a94894b
1 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue