added exception handler around block reported by Thierry Zoller

This commit is contained in:
Miroslav Stampar 2010-05-04 08:03:48 +00:00
parent 107a900f51
commit 5bc07426e0

View File

@ -199,7 +199,11 @@ class Connect:
errMsg = "page not found"
raise sqlmapConnectionException, errMsg
else:
page = e.read()
try:
page = e.read()
except socket.timeout:
warnMsg = "connection timed out to the target url"
raise sqlmapConnectionException, warnMsg
code = e.code
status = e.msg
responseHeaders = e.info()