Merge pull request #630 from croneter/operationalerror

Fix OperationalError: no such table on database reset
This commit is contained in:
croneter 2019-01-28 20:21:25 +01:00 committed by GitHub
commit ee805301a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,6 +154,10 @@ def process_fanart(plex_id, plex_type, refresh=False):
setid, setid,
v.KODI_TYPE_SET) v.KODI_TYPE_SET)
done = True done = True
except utils.OperationalError:
# Caused if we reset the Plex database and this function has not yet
# returned
pass
finally: finally:
if done is True and not suspends(): if done is True and not suspends():
with PlexDB() as plexdb: with PlexDB() as plexdb: