Fix database exception

This commit is contained in:
JonnyWong16
2020-05-24 00:13:29 -07:00
parent f2323b0dff
commit 0741b4021c

View File

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