jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/640175 )

Change subject: [bugfix] BaseBot has no site attribute
......................................................................

[bugfix] BaseBot has no site attribute

UploadRobot is derived from BaseBot which does not have a site
attribute or property implemented.

Bug: T267573
Change-Id: Ib87bc74d4cd5c9f5edbccd269ef8f82ed2359088
---
M pywikibot/specialbots/_upload.py
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/pywikibot/specialbots/_upload.py b/pywikibot/specialbots/_upload.py
index ea1d53e..864339d 100644
--- a/pywikibot/specialbots/_upload.py
+++ b/pywikibot/specialbots/_upload.py
@@ -112,9 +112,9 @@
         self.filename_prefix = filename_prefix

         if config.upload_to_commons:
-            default_site = pywikibot.Site('commons', 'commons')
+            default_site = pywikibot.Site('commons:commons')
         else:
-            default_site = self.site
+            default_site = pywikibot.Site()
         self.target_site = target_site or default_site

     def read_file_content(self, file_url: str):

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/640175
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib87bc74d4cd5c9f5edbccd269ef8f82ed2359088
Gerrit-Change-Number: 640175
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to