Steps to replicate the issue:
D:\pywikibot>pwb.py login WARNING: No user is logged in on site wikisource:gu Password for user Dsvyas on wikisource:gu (no characters will be shown): Logging in to wikisource:gu as Dsvyas Please enter a verification code from your authentication device.: Logged in on wikisource:gu as Dsvyas. D:\pywikibot>python pwb.py protect -file:unprotect.txt -unprotect -summary:"Unprotecting for Reverse Transclusion"
What happens?:
Error: raise UserRightsError('User "{}" does not have required ' pywikibot.exceptions.UserRightsError: User "None" does not have required user right "protect" CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.UserRightsError'>
What should have happened instead?:
The script runs without error
Software version:
pywikibot 8.0.0
Other information:
- adding site.login() will allow it to run
- The replace script does work. https://gu.wikisource.org/w/index.php?diff=190920