Private GIT

Skip to content
Snippets Groups Projects
Commit 64066a94 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Fix deprecation warnings

parent 1d5bb45a
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ class CacheDBConnection(db.DBConnection): ...@@ -48,7 +48,7 @@ class CacheDBConnection(db.DBConnection):
self.connection.execute(sql) self.connection.execute(sql)
self.connection.commit() self.connection.commit()
except sqlite3.OperationalError, e: except sqlite3.OperationalError, e:
if e.message != "table "+providerName+" already exists": if str(e) != "table "+providerName+" already exists":
raise raise
# Create the table if it's not already there # Create the table if it's not already there
...@@ -57,7 +57,7 @@ class CacheDBConnection(db.DBConnection): ...@@ -57,7 +57,7 @@ class CacheDBConnection(db.DBConnection):
self.connection.execute(sql) self.connection.execute(sql)
self.connection.commit() self.connection.commit()
except sqlite3.OperationalError, e: except sqlite3.OperationalError, e:
if e.message != "table lastUpdate already exists": if str(e) != "table lastUpdate already exists":
raise raise
class TVCache(): class TVCache():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment