mirror of https://github.com/apache/lucene.git
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:
parent
e80c56d227
commit
7b44a4f213
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue