fix for a bug reported by [email protected] (local variable 'code' referenced before assignment)

This commit is contained in:
Miroslav Stampar
2011-01-25 11:02:41 +00:00
parent 5692506131
commit cab86871fe
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -368,6 +368,9 @@ Alessandro Tanasi <[email protected]>
Andres Tarasco <[email protected]>
for providing me with good feedback
Kazim Bugra Tombul <[email protected]>
for reporting a minor bug
Efrain Torres <[email protected]>
for helping me out to improve the Metasploit Framework 3 sqlmap
auxiliary module and for commiting it on the Metasploit official
+1 -1
View File
@@ -259,7 +259,7 @@ class Connect:
page = decodePage(page, responseHeaders.get("Content-Encoding"), responseHeaders.get("Content-Type"))
except socket.timeout:
warnMsg = "connection timed out while trying "
warnMsg += "to get error page information (%d)" % code
warnMsg += "to get error page information (%d)" % e.code
logger.warn(warnMsg)
return None, None
except: