Skip to content

Commit 9c620da

Browse files
committed
Minor fix
1 parent c1c14da commit 9c620da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ def getPage(**kwargs):
196196
warnMsg += "status code, try to force the HTTP User-Agent "
197197
warnMsg += "header with option --user-agent or -a"
198198

199+
else:
200+
warnMsg = "unable to connect to the target url"
201+
199202
if "BadStatusLine" not in tbMsg:
200203
warnMsg += " or proxy"
201204

0 commit comments

Comments
 (0)