Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 712e238

Browse files
committed
another minor fix
1 parent 2795aef commit 712e238

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/request/connect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,6 @@ def getPage(**kwargs):
393393
if "forcibly closed" in tbMsg:
394394
logger.critical(warnMsg)
395395
return None, None
396-
elif kb.testMode:
397-
logger.warn(warnMsg)
398-
return None, None
399396
elif silent or (ignoreTimeout and any(map(lambda x: x in tbMsg, ["timed out", "IncompleteRead"]))):
400397
return None, None
401398
elif threadData.retriesCount < conf.retries and not kb.threadException and not conf.realTest:
@@ -429,6 +426,9 @@ def getPage(**kwargs):
429426

430427
socket.setdefaulttimeout(conf.timeout)
431428
return Connect.__getPageProxy(**kwargs)
429+
elif kb.testMode:
430+
logger.warn(warnMsg)
431+
return None, None
432432
else:
433433
socket.setdefaulttimeout(conf.timeout)
434434
raise sqlmapConnectionException, warnMsg

0 commit comments

Comments
 (0)