Storno, I had to run 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 <> ezt írta (időpont: 2022. nov. 27., V, 13:42):
python -nolog -user:Bináris
python -nolog -user:"Bináris"

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. :-(