jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[bugfix] create site attribute first

Bug: T191949
Change-Id: I7fac15af1cd6284afb6929854c8fd661b21532fc
---
M scripts/editarticle.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/editarticle.py b/scripts/editarticle.py
index 938bde2..e44c0b1 100755
--- a/scripts/editarticle.py
+++ b/scripts/editarticle.py
@@ -52,8 +52,8 @@
def __init__(self, *args):
"""Constructor."""
self.set_options(*args)
- self.setpage()
self.site = pywikibot.Site()
+ self.setpage()

def set_options(self, *args):
"""Parse commandline and set options attribute."""

To view, visit change 425463. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7fac15af1cd6284afb6929854c8fd661b21532fc
Gerrit-Change-Number: 425463
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>