diff --git a/resources/lib/playlists/__init__.py b/resources/lib/playlists/__init__.py index 231b1865..c223303a 100644 --- a/resources/lib/playlists/__init__.py +++ b/resources/lib/playlists/__init__.py @@ -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: