mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Cleanup unused modules and imports
* Ran code through PyFlakes
This commit is contained in:
parent
325fa19e46
commit
cb8a5504f6
290 changed files with 45 additions and 78157 deletions
|
@ -145,7 +145,7 @@ class MonitorDatabase(object):
|
|||
# Our transaction was successful, leave the loop
|
||||
break
|
||||
|
||||
except sqlite3.OperationalError, e:
|
||||
except sqlite3.OperationalError as e:
|
||||
if "unable to open database file" in e.message or "database is locked" in e.message:
|
||||
logger.warn(u"PlexPy Database :: Database Error: %s", e)
|
||||
attempts += 1
|
||||
|
@ -154,7 +154,7 @@ class MonitorDatabase(object):
|
|||
logger.error(u"PlexPy Database :: Database error: %s", e)
|
||||
raise
|
||||
|
||||
except sqlite3.DatabaseError, e:
|
||||
except sqlite3.DatabaseError as e:
|
||||
logger.error(u"PlexPy Database :: Fatal Error executing %s :: %s", query, e)
|
||||
raise
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue