Closed winstontsai closed 2 years ago
Thank you for the debugging the issue. Ideally, wikitextparser
should not detect '{{Template: }}
as a template in the first place, but since template namespace can be localized and wikitextparser
does not currently support localized namespaces, I think your solution is best for now. Tnx again!
I encountered an IndexError in the Template.normal_name function while running my bot. I don't have the actual example that caused this, but I have reproduced an example of what I think happened:
One fix would be to change this code:
to