1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

db locking issues fix #2

This commit is contained in:
echel0n 2014-06-05 12:59:17 -07:00
parent 26f30cacf5
commit 385bf3987e

View File

@ -124,8 +124,8 @@ class DBConnection:
attempt = 0
# Transaction
self.connection.isolation_level = 'EXCLUSIVE'
self.connection.execute('BEGIN EXCLUSIVE')
self.connection.isolation_level = None
self.connection.execute('BEGIN')
while attempt < 5:
try: