From a3d2c5530ca9ace1a80869407524abd3f0ff02d4 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 27 Jan 2019 13:31:59 +0100 Subject: [PATCH] Fix OperationalError: no such table on database reset --- resources/lib/library_sync/fanart.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/library_sync/fanart.py b/resources/lib/library_sync/fanart.py index a04f2734..121d3786 100644 --- a/resources/lib/library_sync/fanart.py +++ b/resources/lib/library_sync/fanart.py @@ -154,6 +154,10 @@ def process_fanart(plex_id, plex_type, refresh=False): setid, v.KODI_TYPE_SET) done = True + except utils.OperationalError: + # Caused if we reset the Plex database and this function has not yet + # returned + pass finally: if done is True and not suspends(): with PlexDB() as plexdb: