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:
Michael McCandless 2013-05-17 10:48:20 +00:00
parent 23cd6d85a3
commit 95f0553bc0
1 changed files with 1 additions and 1 deletions

View File

@ -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: