From 714263e8f1a59030f0c32adcbc37bde408f1af46 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 24 Nov 2008 19:16:23 +0000 Subject: Give more useful error message when author parsing fails svn:r302 --- BibTeX.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BibTeX.py b/BibTeX.py index 739fad6..41843bc 100644 --- a/BibTeX.py +++ b/BibTeX.py @@ -860,7 +860,15 @@ class FileIter: self.lineno += 1 return self._next() + def parseAuthor(s): + try: + return _parseAuthor(s) + except: + print >>sys.stderr, "Internal error while parsing author %r"%s + raise + +def _parseAuthor(s): """Take an author string and return a list of ParsedAuthor.""" items = [] -- cgit v1.2.3-70-g09d2