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