Minor patch

This commit is contained in:
Miroslav Stampar
2015-09-09 11:53:44 +02:00
parent b6206692e0
commit 90329a8b01
3 changed files with 6 additions and 6 deletions

View File

@@ -3008,7 +3008,7 @@ def createGithubIssue(errMsg, excMsg):
else:
warnMsg = "something went wrong while creating a Github issue"
if ex:
warnMsg += " ('%s')" % ex
warnMsg += " ('%s')" % ex.message
if "Unauthorized" in warnMsg:
warnMsg += ". Please update to the latest revision"
logger.warn(warnMsg)
@@ -3567,7 +3567,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
request = form.click()
except (ValueError, TypeError), ex:
errMsg = "there has been a problem while "
errMsg += "processing page forms ('%s')" % ex
errMsg += "processing page forms ('%s')" % ex.message
if raise_:
raise SqlmapGenericException(errMsg)
else: