Page MenuHomePhabricator

The bot group is not properly detected on pywikibot.site.editpage()
Closed, InvalidPublic

Description

At line 5029 of site.py, is written

bot = ('bot' in self.userinfo['rights'])

this does not work (at least for enwiki) for detecting whether the bot has the bot right, as the bot right is stored in groups (and not rights). Therefore, this line should be changed to:

bot = ('bot' in self.userinfo['groups'])

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptFeb 2 2019, 9:57 PM
JJMC89 closed this task as Invalid.Feb 2 2019, 11:06 PM
JJMC89 added a subscriber: JJMC89.

There is a bot right and a bot group. The bot right can be assigned to groups other than bot, so the former must be checked. The bot right is commonly assigned to a flood group on some Wikimedia wikis.