mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for __exit__ DB errors
This commit is contained in:
parent
3f6084fe4b
commit
61e1e5d2c2
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user