Fix for an Issue #495

This commit is contained in:
Miroslav Stampar 2013-07-27 11:20:43 +02:00
parent df5a6beb6e
commit b921ff0729
2 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -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: