Patch for an Issue #801

This commit is contained in:
Miroslav Stampar
2014-08-28 00:00:16 +02:00
parent fd36250026
commit fce671c899
2 changed files with 3 additions and 0 deletions

View File

@@ -3337,6 +3337,8 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
try:
forms = ParseResponse(response, backwards_compat=False)
except UnicodeError:
pass
except ParseError:
warnMsg = "badly formed HTML at the given URL ('%s'). Going to filter it" % url
logger.warning(warnMsg)