| AbdealiJK created this task. AbdealiJK added projects: Easy, Pywikibot-core. Herald added subscribers: pywikibot-bugs-list, TerraCodes, Aklapper. |
TASK DESCRIPTION
It is confusing for users when the pywikibot.Bot gives warnings about self._site not being set. Currently in image.py it gives:
>pwb.py image "Senior picture.jpg" WARNING: Bot.site was not set before being retrieved. WARNING: Using the default site: meta:meta Retrieving 1 pages from meta:meta. WARNING: Bot.site was not set before being retrieved. WARNING: Using the default site: meta:meta
This can be simplified by just setting self.site in the constructor of the Bot class being used by image.py
Marking as #easy, as it's simple to do and would be beneficial for new contributors.
TASK DETAIL
EMAIL PREFERENCES
To: AbdealiJK
Cc: Aklapper, TerraCodes, pywikibot-bugs-list, AbdealiJK, MayS, Mdupont, JJMC89, MuhammadShuaib, jayvdb, Alchimista
Cc: Aklapper, TerraCodes, pywikibot-bugs-list, AbdealiJK, MayS, Mdupont, JJMC89, MuhammadShuaib, jayvdb, Alchimista
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
