From eef0eda426d0cbd366e91b5c57b3f1c7242d0f8e Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 16 Mar 2019 17:47:23 +0100 Subject: [PATCH] Fix 'NoneType' object has no attribute 'kodi_path' --- resources/lib/playlists/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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: