ArielGlenn has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/276822

Change subject: onallwikis: don't crash on retries is None
......................................................................

onallwikis: don't crash on retries is None

Change-Id: Ic2923a642c76589c7f8184bcaf75b54545ee4cd8
---
M xmldumps-backup/onallwikis.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/dumps 
refs/changes/22/276822/1

diff --git a/xmldumps-backup/onallwikis.py b/xmldumps-backup/onallwikis.py
index c000d9f..06ea30b 100644
--- a/xmldumps-backup/onallwikis.py
+++ b/xmldumps-backup/onallwikis.py
@@ -321,7 +321,7 @@
     if not output_dir:
         usage("Mandatory argument 'outputdir' was not specified.")
 
-    if not retries.isdigit():
+    if retries is not None and not retries.isdigit():
         usage("A positive number must be specified for retries.")
 
     if script is not None and query is not None:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic2923a642c76589c7f8184bcaf75b54545ee4cd8
Gerrit-PatchSet: 1
Gerrit-Project: operations/dumps
Gerrit-Branch: ariel
Gerrit-Owner: ArielGlenn <[email protected]>

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

Reply via email to