gnunetbib

Bibliography (BibTeX, based on AnonBib)
Log | Files | Refs | README | LICENSE

commit 06c85d8f55a1b2fc143a55eb0ce07e95f5d4781c
parent 053c8225a094b283ef812c8e4244acc1d32d0eb7
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon, 24 Nov 2008 19:16:23 +0000

Give more useful error message when author parsing fails

svn:r302

Diffstat:
MBibTeX.py | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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 = []