jenkins-bot submitted this change.
[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(-)
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 change 640175. To unsubscribe, or for help writing mail filters, visit settings.