improve error message on unhandled href

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1330495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-04-25 19:20:06 +00:00
parent e80c56d227
commit 7b44a4f213
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class FindHyperlinks(HTMLParser):
# LUCENE-4010: AttributeSource's javadocs has an unescaped <A> generics!! Seems to be a javadocs bug... (fixed in Java 7) # LUCENE-4010: AttributeSource's javadocs has an unescaped <A> generics!! Seems to be a javadocs bug... (fixed in Java 7)
pass pass
else: else:
raise RuntimeError('BUG: %s' % attrs) raise RuntimeError('BUG: couldn\'t find an href nor name in link in %s: only got these attrs: %s' % (self.baseURL, attrs))
def printFile(self): def printFile(self):
if not self.printed: if not self.printed: