https://bugzilla.wikimedia.org/show_bug.cgi?id=71817
--- Comment #2 from Fabian CommodoreFabianus@gmx.de --- Okay https://gerrit.wikimedia.org/r/161671/ does indirectly fix this. The problem is that Link.parse() raises an Error and not InvalidTitle exception. If it'd raise an InvalidTitle, cosmetic_changes.py would work fine.