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

Skip to content

Commit 5f7f4bf

Browse files
committed
minor debug update (probably temporary)
1 parent 3f0a443 commit 5f7f4bf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ def getPage(**kwargs):
243243
elif "timeout" in tbMsg:
244244
warnMsg = "connection timed out to the target url"
245245
elif "BadStatusLine" in tbMsg:
246+
debugMsg = "BadStatusLine: %s || %s || %d" % (tbMsg, e, e.line)
247+
logger.debug(debugMsg)
248+
246249
warnMsg = "the target url responded with an unknown HTTP "
247250
warnMsg += "status code, try to force the HTTP User-Agent "
248251
warnMsg += "header with option --user-agent or -a"

0 commit comments

Comments
 (0)