Fix OperationalError: no such table on database reset
This commit is contained in:
parent
1d991fd606
commit
a3d2c5530c
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue