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