jenkins-bot has submitted this change and it was merged.
Change subject: Fix limit argument parser
......................................................................
Fix limit argument parser
'-limit' was parsed as including a value instead of prompting for
a value, causing a ValueError.
Change-Id: Iea57e1bb8cc5823cc01420636d04752a5fb2f3f7
---
M scripts/checkimages.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 762f6d6..91468f6 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1595,7 +1595,7 @@
# Here below there are the parameters.
for arg in pywikibot.handle_args(args):
if arg.startswith('-limit'):
- if len(arg) == 7:
+ if len(arg) == 6:
limit = int(pywikibot.input(
u'How many files do you want to check?'))
else:
--
To view, visit
https://gerrit.wikimedia.org/r/257848
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iea57e1bb8cc5823cc01420636d04752a5fb2f3f7
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Murfel <murnatty(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>