mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Patch for an Issue #1046
This commit is contained in:
parent
180ede0cb3
commit
0cb7852754
|
@ -77,8 +77,12 @@ class HashDB(object):
|
||||||
for row in self.cursor.execute("SELECT value FROM storage WHERE id=?", (hash_,)):
|
for row in self.cursor.execute("SELECT value FROM storage WHERE id=?", (hash_,)):
|
||||||
retVal = row[0]
|
retVal = row[0]
|
||||||
except sqlite3.OperationalError, ex:
|
except sqlite3.OperationalError, ex:
|
||||||
if not 'locked' in ex.message:
|
if not "locked" in ex.message:
|
||||||
raise
|
raise
|
||||||
|
except sqlite3.DatabaseError, ex:
|
||||||
|
errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, ex)
|
||||||
|
errMsg += "If the problem persists please rerun with `--flush-session`"
|
||||||
|
raise SqlmapDataException, errMsg
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
return retVal if not unserialize else unserializeObject(retVal)
|
return retVal if not unserialize else unserializeObject(retVal)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user