mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Fix for an Issue #495
This commit is contained in:
@@ -598,14 +598,14 @@ def start():
|
|||||||
except SqlmapSilentQuitException:
|
except SqlmapSilentQuitException:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
except SqlmapBaseException, e:
|
except SqlmapBaseException, ex:
|
||||||
e = getUnicode(e)
|
errMsg = getUnicode(ex.message)
|
||||||
|
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
e += ", skipping to the next %s" % ("form" if conf.forms else "URL")
|
errMsg += ", skipping to the next %s" % ("form" if conf.forms else "URL")
|
||||||
logger.error(e)
|
logger.error(errMsg)
|
||||||
else:
|
else:
|
||||||
logger.critical(e)
|
logger.critical(errMsg)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
@@ -101,9 +101,9 @@ def main():
|
|||||||
except (SqlmapSilentQuitException, bdb.BdbQuit):
|
except (SqlmapSilentQuitException, bdb.BdbQuit):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
except SqlmapBaseException, e:
|
except SqlmapBaseException, ex:
|
||||||
e = getUnicode(e)
|
errMsg = getUnicode(ex.message)
|
||||||
logger.critical(e)
|
logger.critical(errMsg)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|||||||
Reference in New Issue
Block a user