Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275799
Change subject: [Bugfix] compare "-user" instead of "-user:"
......................................................................
[Bugfix] compare "-user" instead of "-user:"
generate_user_files with -user option failed and no user-config.py was
created. A valid config.mylang is needed to run script_tests. The 'language'
language from config2.py leads to missing handlers error. This patch solves it.
Bug: T128318
Change-Id: I1669581b7b5e023dfa0a8088e9117fd336ebc234
---
M pywikibot/bot.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/99/275799/1
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 6990c79..895e56f 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -850,7 +850,7 @@
config.family = value
elif option == '-lang':
config.mylang = value
- elif option == '-user:':
+ elif option == '-user':
username = value
elif option in ('-putthrottle', '-pt'):
config.put_throttle = int(value)
--
To view, visit https://gerrit.wikimedia.org/r/275799
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1669581b7b5e023dfa0a8088e9117fd336ebc234
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits