mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-21 13:26:07 +03:00
Fix for an Issue #495
This commit is contained in:
parent
df5a6beb6e
commit
b921ff0729
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user