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

Skip to content

Commit 7751346

Browse files
committed
minor update
1 parent 072e088 commit 7751346

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/request/connect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ def getPage(**kwargs):
464464
elif "URLError" in tbMsg or "error" in tbMsg:
465465
warnMsg = "unable to connect to the target url"
466466
elif "BadStatusLine" in tbMsg:
467-
warnMsg = "the target url responded with an unknown HTTP "
468-
warnMsg += "status code, try to force the HTTP User-Agent "
467+
warnMsg = "connection dropped or unknown HTTP "
468+
warnMsg += "status code received. Try to force the HTTP User-Agent "
469469
warnMsg += "header with option '--user-agent' or switch '--random-agent'"
470470
elif "IncompleteRead" in tbMsg:
471471
warnMsg = "there was an incomplete read error while retrieving data "

0 commit comments

Comments
 (0)