mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix database exception
This commit is contained in:
parent
f2323b0dff
commit
0741b4021c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue