mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix deprecated BaseException.message
This commit is contained in:
parent
669c23ea09
commit
b69b722a37
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class MonitorDatabase(object):
|
|||
break
|
||||
|
||||
except sqlite3.OperationalError as e:
|
||||
if "unable to open database file" in e.message or "database is locked" in e.message:
|
||||
if "unable to open database file" in e or "database is locked" in e:
|
||||
logger.warn(u"PlexPy Database :: Database Error: %s", e)
|
||||
attempts += 1
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue