jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
Fixed AttributeError at newitem.py script

Bug: T217513
Change-Id: Ie49151f595cb13fa575e976eccb44b872368378f
---
M scripts/newitem.py
1 file changed, 2 insertions(+), 2 deletions(-)

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 change 494041. To unsubscribe, or for help writing mail filters, visit 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@gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)