downloads fix

This commit is contained in:
DiMartinoXBMC committed 2015-08-11 18:49:00 +03:00
1 parent e7693e5698
commit acc41a09f5
1 file changed
+10 -4
+10 -4
View File
@@ -1540,10 +1540,16 @@ class DownloadDB:
self.db.commit()
self.cur.close()
except:
self.cur.execute('drop table downloads')
first = True
self.db.commit()
self.cur.close()
try:
self.cur.execute('drop table downloads')
first = True
self.db.commit()
self.cur.close()
except:
self.db.close()
os.remove(self.filename)
first = True
self.db = sqlite.connect(self.filename, check_same_thread=False)
if first:
cur = self.db.cursor()