Page MenuHomePhabricator

BadTitle exception nowhere raised
Closed, DuplicatePublic

Description

The BadTitle exception is nowhere raised in the library. Either we mark it as deprecated or we start using it again and raise it to be compatible with compat. Maybe InvalidTitle subclasses it, as the Link constructor is afaik the only place where we would encounter it now. There is T106954 which raises InvalidTitle on the result from the API using a bad title. On other queries it doesn't specifically says that a title like Talk:Project:Foo is invalid.

Event Timeline

XZise raised the priority of this task from to Needs Triage.
XZise updated the task description. (Show Details)
XZise added a project: Pywikibot.
XZise added subscribers: Xqt, Aklapper, pywikibot-bugs-list, XZise.
Xqt triaged this task as Low priority.Jun 28 2017, 8:36 AM