mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
few minor just in case updates
This commit is contained in:
parent
85125018a1
commit
3909658fc2
|
@ -79,6 +79,7 @@ class Dump:
|
|||
self._outputBP = StringIO.StringIO()
|
||||
|
||||
def getOutputFile(self):
|
||||
self.flush()
|
||||
return self._outputFile
|
||||
|
||||
def string(self, header, data, sort=True):
|
||||
|
|
|
@ -10,6 +10,7 @@ See the file 'doc/COPYING' for copying permission
|
|||
import hashlib
|
||||
import sqlite3
|
||||
import threading
|
||||
import time
|
||||
|
||||
from lib.core.common import serializeObject
|
||||
from lib.core.common import unserializeObject
|
||||
|
@ -101,8 +102,10 @@ class HashDB(object):
|
|||
except sqlite3.IntegrityError:
|
||||
self.cursor.execute("UPDATE storage SET value=? WHERE id=?", (value, hash_,))
|
||||
except sqlite3.OperationalError, ex:
|
||||
if not 'locked' in ex.message:
|
||||
if not any(_ in ex.message for _ in ('locked', 'I/O')):
|
||||
raise
|
||||
else:
|
||||
time.sleep(1)
|
||||
else:
|
||||
break
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue
Block a user