Fix database exception

This commit is contained in:
JonnyWong16 2020-05-24 00:13:29 -07:00
parent f2323b0dff
commit 0741b4021c
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -359,6 +359,7 @@ class MonitorDatabase(object):
break break
except sqlite3.OperationalError as e: except sqlite3.OperationalError as e:
e = str(e)
if "unable to open database file" in e or "database is locked" in e: if "unable to open database file" in e or "database is locked" in e:
logger.warn("Tautulli Database :: Database Error: %s", e) logger.warn("Tautulli Database :: Database Error: %s", e)
attempts += 1 attempts += 1