Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/118818
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(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat refs/changes/18/118818/1 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 -- To view, visit https://gerrit.wikimedia.org/r/118818 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iac8d7d33127fe522c2f36dacaa12d8c8f9825646 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/compat Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits