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
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/118818
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iac8d7d33127fe522c2f36dacaa12d8c8f9825646
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Meno25 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to