jenkins-bot has submitted this change and it was merged.
Change subject: Ignore InvalidIsbnException with -format option (update from core) ......................................................................
Ignore InvalidIsbnException with -format option (update from core)
Do not raise the exception but continue with the next number/page
Change-Id: Iac8d7d33127fe522c2f36dacaa12d8c8f9825646 --- M isbn.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/isbn.py b/isbn.py index 7244cea..19ef5d4 100644 --- a/isbn.py +++ b/isbn.py @@ -36,7 +36,7 @@
""" # -# (C) Pywikibot team, 2006-2013 +# (C) Pywikibot team, 2006-2014 # # Distributed under the terms of the MIT license. # @@ -1363,10 +1363,10 @@ code = match.group('code') try: i = getIsbn(code) + i.format() except InvalidIsbnException: # don't change return code - i.format() return i.code
pywikibot-commits@lists.wikimedia.org