jenkins-bot has submitted this change and it was merged.
Change subject: [IMPROV] Category: Query again on invalid category
......................................................................
[IMPROV] Category: Query again on invalid category
It shouldn't try jumping to a category without any name. Instead ask the
user again.
Change-Id: I53d470df16766b1d34f14248de2b8c7abb47243a
---
M scripts/category.py
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py
index 62d9b75..dd8fe46 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -921,7 +921,8 @@
flag = True
elif choice in ['j', 'J']:
newCatTitle = pywikibot.input(u'Please enter the category the '
- u'article should be moved to:')
+ u'article should be moved to:',
+ default=None) # require an answer
newCat = pywikibot.Category(pywikibot.Link('Category:' +
newCatTitle))
# recurse into chosen category
--
To view, visit
https://gerrit.wikimedia.org/r/186335
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I53d470df16766b1d34f14248de2b8c7abb47243a
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>