print file path when we fail to parse HTML

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1356520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-07-02 23:40:45 +00:00
parent ea4d4cf670
commit 6a8d538b5a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def parse(baseURL, html):
parser.close() parser.close()
except HTMLParseError: except HTMLParseError:
parser.printFile() parser.printFile()
print ' WARNING: failed to parse:' print ' WARNING: failed to parse %s:' % baseURL
traceback.print_exc() traceback.print_exc()
failures = True failures = True
return [], [] return [], []