Multichill added a comment.
We managed to reproduce the bug. It's caused by the check if a bot is allowed to edit. Talked with Jay about this. Nice solution would be to check if the template actually exists before trying to parse a page with textlib
TASK DETAIL https://phabricator.wikimedia.org/T90156
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Multichill Cc: jayvdb, XZise, Aklapper, Multichill, pywikipedia-bugs