Storno, I had to run login.py directly.

But I still have the question: if I edit pages with my regular bot account,
and one of them is protected, what will happen? Can I switch to my sysop
account?

Bináris <wikipo...@gmail.com> ezt írta (időpont: 2022. nov. 27., V, 13:42):

> python pwb.py -nolog -user:Bináris userpageprotect.py
> python pwb.py -nolog -user:"Bináris" userpageprotect.py
>
> Neither asks for my password when the script wants to protect a page. (The
> script is own development.)
> Instead I get:
>
> pywikibot.exceptions.UserRightsError: User "None" does not have required
> user right "protect"
> CRITICAL: Exiting due to uncaught exception <class
> 'pywikibot.exceptions.UserRightsError'>
> Do I do soemthing wrong?
>
> I liked the compat solution with my sysop user in user-config much better.
> :-(
> --
> Bináris
>


-- 
Bináris
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

Reply via email to