https://bugzilla.wikimedia.org/show_bug.cgi?id=69384
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- Note that Page.botMayEdit() uses this method via Page.templatesWithParams() to look for {{nobots}}, and needs to catch an exception when it tries to instantiate a Link using these invalid 'template' names.
See comment in
https://git.wikimedia.org/blobdiff/pywikibot%2Fcore.git/7e3772cae04f95cb55b2...