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):
pywikibot-commits@lists.wikimedia.org