jenkins-bot merged this change.
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.