mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor adjustments
This commit is contained in:
parent
35642a0450
commit
75dc44deb8
|
@ -513,12 +513,12 @@ class XMLDump:
|
|||
statusElem = self.__doc.createElement(STATUS_ELEM_NAME)
|
||||
statusElem.setAttributeNode(self.__createAttribute(SUCESS_ATTR,getUnicode(resultStatus)))
|
||||
|
||||
if not(resultStatus) :
|
||||
if not resultStatus:
|
||||
errorElem = self.__doc.createElement(ERROR_ELEM_NAME)
|
||||
|
||||
if (isinstance(resultMsg, Exception)):
|
||||
if isinstance(resultMsg, Exception):
|
||||
errorElem.setAttributeNode(self.__createAttribute(TYPE_ATTR, type(resultMsg).__name__))
|
||||
else :
|
||||
else:
|
||||
errorElem.setAttributeNode(self.__createAttribute(TYPE_ATTR, UNHANDLED_PROBLEM_TYPE))
|
||||
|
||||
errorElem.appendChild(self.__createTextNode(getUnicode(resultMsg)))
|
||||
|
|
|
@ -92,17 +92,17 @@ def main():
|
|||
logger.error(e)
|
||||
closeDumper(False, e)
|
||||
|
||||
except KeyboardInterrupt, e:
|
||||
except KeyboardInterrupt, _:
|
||||
print
|
||||
errMsg = "user aborted"
|
||||
logger.error(errMsg)
|
||||
closeDumper(False, e)
|
||||
closeDumper(False, errMsg)
|
||||
|
||||
except EOFError, e:
|
||||
except EOFError, _:
|
||||
print
|
||||
errMsg = "exit"
|
||||
logger.error(errMsg)
|
||||
closeDumper(False, e)
|
||||
closeDumper(False, errMsg)
|
||||
|
||||
except:
|
||||
print
|
||||
|
|
Loading…
Reference in New Issue
Block a user