This commit is contained in:
Miroslav Stampar 2015-10-29 17:02:47 +01:00
parent 0b64cf803c
commit 04aaa5985b

View File

@ -3561,7 +3561,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
try:
forms = ParseResponse(response, backwards_compat=False)
except UnicodeError:
except (UnicodeError, ValueError):
pass
except ParseError:
if "<html" in (content or ""):