jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/571674 )
Change subject: [bugfix] Use current_page.site instead of self.site ......................................................................
[bugfix] Use current_page.site instead of self.site
With MultipleSitesBot self.site shouldn't be used. Page.site is required instead.
Bug: T244962 Change-Id: If74897cd2e0bf176703017664074335eb20b9493 --- M scripts/delete.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/delete.py b/scripts/delete.py index 8803b8c..72b0be2 100755 --- a/scripts/delete.py +++ b/scripts/delete.py @@ -214,8 +214,8 @@ self.current_page, ns_names)) return # Not an orphan, do not delete.
- if self.site.user() is None: - self.site.login() + if self.current_page.site.user() is None: + self.current_page.site.login() self.current_page.delete(self.summary, not self.getOption('always'), self.getOption('always'),
pywikibot-commits@lists.wikimedia.org