Don't try to replace the $effect_chance in missing effect translations

This commit is contained in:
Petr Viktorin 2011-04-20 14:05:52 +03:00
parent 733bedd602
commit 051d6563a4

View file

@ -64,6 +64,8 @@ class MarkdownString(object):
return self.source_text
def _markdownify_effect_text(move, effect_text):
if effect_text is None:
return effect_text
effect_text = effect_text.replace(
u'$effect_chance',
unicode(move.effect_chance),