Merge pull request #771 from croneter/fix-playlist-sync

Fix 'NoneType' object has no attribute 'kodi_path'
This commit is contained in:
croneter 2019-03-17 17:57:49 +01:00 committed by GitHub
commit b5b9dd51a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,6 +202,8 @@ def _full_sync():
return False
playlist = db.get_playlist(plex_id=plex_id)
LOG.debug('Removing outdated Plex playlist from Kodi: %s', playlist)
if playlist is None:
continue
try:
kodi_pl.delete(playlist)
except PlaylistError: