Fix for __exit__ DB errors

This commit is contained in:
echel0n 2014-06-21 18:35:57 -07:00
parent 3f6084fe4b
commit 61e1e5d2c2
13 changed files with 26 additions and 26 deletions

View File

@ -344,8 +344,8 @@ class BTNCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
else:
raise AuthException(

View File

@ -255,8 +255,8 @@ class HDBitsCache(tvcache.TVCache):
ql.append(ci)
if ql:
with self._getDB() as myDB:
myDB.mass_action(ql)
myDB = self._getDB()
myDB.mass_action(ql)
else:
raise exceptions.AuthException(

View File

@ -377,8 +377,8 @@ class HDTorrentsCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -318,8 +318,8 @@ class IPTorrentsCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -455,8 +455,8 @@ class KATCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -342,8 +342,8 @@ class NewznabCache(tvcache.TVCache):
ql.append(ci)
if ql:
with self._getDB() as myDB:
myDB.mass_action(ql)
myDB = self._getDB()
myDB.mass_action(ql)
else:
raise AuthException(

View File

@ -367,8 +367,8 @@ class NextGenCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -340,8 +340,8 @@ class PublicHDCache(tvcache.TVCache):
ql.append(ci)
if ql:
with self._getDB() as myDB:
myDB.mass_action(ql)
myDB = self._getDB()
myDB.mass_action(ql)
def _parseItem(self, item):

View File

@ -362,8 +362,8 @@ class SCCCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -302,8 +302,8 @@ class SpeedCDCache(tvcache.TVCache):
ql.append(ci)
if ql:
with self._getDB() as myDB:
myDB.mass_action(ql)
myDB = self._getDB()
myDB.mass_action(ql)
def _parseItem(self, item):

View File

@ -435,8 +435,8 @@ class ThePirateBayCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -326,8 +326,8 @@ class TorrentDayCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):

View File

@ -321,8 +321,8 @@ class TorrentLeechCache(tvcache.TVCache):
cl.append(ci)
if cl:
with self._getDB() as myDB:
myDB.mass_action(cl)
myDB = self._getDB()
myDB.mass_action(cl)
def _parseItem(self, item):