jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/494041 )
Change subject: Fixed AttributeError at newitem.py script
......................................................................
Fixed AttributeError at newitem.py script
Bug: T217513
Change-Id: Ie49151f595cb13fa575e976eccb44b872368378f
---
M scripts/newitem.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/newitem.py b/scripts/newitem.py
index a2f3595..bb1d350 100755
--- a/scripts/newitem.py
+++ b/scripts/newitem.py
@@ -22,7 +22,7 @@
"""
#
# (C) Multichill, 2014
-# (C) Pywikibot team, 2014-2018
+# (C) Pywikibot team, 2014-2019
#
# Distributed under the terms of the MIT license.
#
@@ -156,7 +156,7 @@
return False
bot = NewItemRobot(generator, **options)
- user = pywikibot.User(bot.site, bot.site.username)
+ user = pywikibot.User(bot.site, bot.site.username())
if bot.getOption('touch') == 'newly' \
and 'autoconfirmed' not in user.groups():
pywikibot.warning(fill(
--
To view, visit
https://gerrit.wikimedia.org/r/494041
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie49151f595cb13fa575e976eccb44b872368378f
Gerrit-Change-Number: 494041
Gerrit-PatchSet: 2
Gerrit-Owner: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangiderick(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)