Fix ValueError
This commit is contained in:
parent
4e16756829
commit
26c588828e
1 changed files with 4 additions and 1 deletions
|
@ -305,7 +305,10 @@ def full_sync():
|
||||||
create_kodi_playlist(api.plex_id())
|
create_kodi_playlist(api.plex_id())
|
||||||
except PL.PlaylistError:
|
except PL.PlaylistError:
|
||||||
LOG.info('Skipping playlist %s: %s', api.plex_id(), api.title())
|
LOG.info('Skipping playlist %s: %s', api.plex_id(), api.title())
|
||||||
|
try:
|
||||||
old_plex_ids.remove(api.plex_id())
|
old_plex_ids.remove(api.plex_id())
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
# Get rid of old Plex playlists that were deleted on the Plex side
|
# Get rid of old Plex playlists that were deleted on the Plex side
|
||||||
for plex_id in old_plex_ids:
|
for plex_id in old_plex_ids:
|
||||||
playlist = playlist_object_from_db(plex_id=api.plex_id())
|
playlist = playlist_object_from_db(plex_id=api.plex_id())
|
||||||
|
|
Loading…
Reference in a new issue