Potential fix for #226

This commit is contained in:
Somdev Sangwan
2019-04-10 11:09:03 +05:30
committed by GitHub
parent 4032e40c67
commit 9c6d6e8548

View File

@@ -27,7 +27,7 @@ def htmlParser(response, encoding):
deep = part.split('>')
if '</script' in deep[0]:
location = 'script'
elif '</' in deep[0]:
elif '</' in deep[0] or len(parts) == 1:
location = 'html'
else:
num = 0