JJMC89 created this task.
JJMC89 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **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

TASK DETAIL
  https://phabricator.wikimedia.org/T329132

WORKBOARD
  https://phabricator.wikimedia.org/project/board/87/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JJMC89
Cc: Xqt, Dsvyas, Aklapper, pywikibot-bugs-list, JJMC89, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Framawiki, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to