Is there a way to recover the actual errors after they have been collected with InputErrorRecoverer?
When the parser tries to parse a BibTeX entry that it already has, using the Parser.parse() function, does so using a recoverer.
The exception thrown should include information about why it failed, and, as seen in line 274 of bib.py:
self._fail('repeated entry')
this is programmed. But the recoverer only throws the amount of input errors, not the message. Is there a way to catch this message? It is important to me to be able to know why the exception is being thrown.
I ran into this same issue as well. I think the intended outcome is that the parser skip the repeat and continue, but for me it raises an exception and some .bib files simply can't be parsed for me. Perhaps I'm mistaken, but it doesn't seem like this library is actively maintained, which is too bad, cause the author's criticism of the alternatives is still valid.