Bugs item #2853381, was opened at 2009-09-07 08:56 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2853381...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: xqt (xqt) Assigned to: Nobody/Anonymous (nobody) Summary: isbn.py: index error
Initial Comment: isbn.py r6798 2009-05-03
Working on http://tr.wikipedia.org/w/index.php?title=Ahmed_Alevi&oldid=5823201 the following error raises:
File "C:\Programme\Python25\pywikipedia\isbn.py", line 1357, in hyphenateIsbnNumbers text = isbnR.sub(_hyphenateIsbnNumber, text) File "C:\Programme\Python25\pywikipedia\isbn.py", line 1352, in _hyphenateIsbnNumber i.format() File "C:\Programme\Python25\pywikipedia\isbn.py", line 1228, in format result += rest[:-1] + '-' + rest[-1] IndexError: string index out of range
This error comes trying formatting 'ISBN 978-9799668806'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-07 09:02
Message: I found the result-variable is 'ISBN 978-979-966-8806-' just before trying to add the check digit. Since the ISBN code has 13 digits it could not add the 14th.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2853381...
pywikipedia-bugs@lists.wikimedia.org