jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/425463 )

Change subject: [bugfix] create site attribute first
......................................................................

[bugfix] create site attribute first

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

Approvals:
  Dalba: Looks good to me, approved
  jenkins-bot: Verified



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 https://gerrit.wikimedia.org/r/425463
To unsubscribe, visit https://gerrit.wikimedia.org/r/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 <i...@gno.de>
Gerrit-Reviewer: Dalba <dalba.w...@gmail.com>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to