jayvdb added a comment.
! In T75513#794670, @XZise wrote:
Indeed this looks like T71664, but in this case the test is directly calling `templatesWithParams` on an `ItemPage` which itself calls `textlib.extract_templates_and_params` and T71664 just prevented that `botMayEdit` calls that `templatesWithParams`. But in theory this should happen anywhere and not just with Wikia.
A possible solution would be to override `templatesWithParams` in `ItemPage` to always return an empty list.
Hmm, I'd be more inclined to raise an exception, as anyone calling ItemPage.templatesWithParams is using the wrong method with the wrong type of page, and the code needs to be fixed.
TASK DETAIL https://phabricator.wikimedia.org/T75513
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb Cc: pywikipedia-bugs, jayvdb, XZise
pywikipedia-bugs@lists.wikimedia.org