mirror of https://github.com/apache/lucene.git
make duplicate anchors a hard error
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1483729 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23cd6d85a3
commit
95f0553bc0
|
@ -65,7 +65,7 @@ class FindHyperlinks(HTMLParser):
|
|||
pass
|
||||
else:
|
||||
self.printFile()
|
||||
print(' WARNING: anchor "%s" appears more than once' % name)
|
||||
raise RuntimeError('anchor "%s" appears more than once' % name)
|
||||
else:
|
||||
self.anchors.add(name)
|
||||
elif href is not None:
|
||||
|
|
Loading…
Reference in New Issue