Fix unchecked fail-to-find causing off-by-one error.
This commit is contained in:
parent
09e606af22
commit
20d99f08fb
|
@ -89,6 +89,10 @@ def extract_from_page (page, verbosity, url, args):
|
|||
|
||||
# split into domain and path
|
||||
index = url.find("/",url.find("//")+2)
|
||||
if (index == -1):
|
||||
domain = url
|
||||
path = "/"
|
||||
else:
|
||||
domain = url[:index]
|
||||
path = url[index:]
|
||||
|
||||
|
|
Loading…
Reference in New Issue