Warn if URL is not valid.

This commit is contained in:
Arun Prakash Jana 2016-05-01 23:19:02 +05:30
parent f0e523bd48
commit 384df72001
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

2
buku
View File

@ -209,6 +209,8 @@ def getPageResp(url, fullurl=False):
urlconn = HTTPConnection(server, timeout=30)
else:
printmsg("Not a valid HTTP(S) url", "WARNING")
if url.find(":") == -1:
printmsg("Doesn't appear to be a valid url either", "WARNING")
return (None, None)
if debug: