mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Don't try to replace the $effect_chance in missing effect translations
This commit is contained in:
parent
733bedd602
commit
051d6563a4
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ class MarkdownString(object):
|
||||||
return self.source_text
|
return self.source_text
|
||||||
|
|
||||||
def _markdownify_effect_text(move, effect_text):
|
def _markdownify_effect_text(move, effect_text):
|
||||||
|
if effect_text is None:
|
||||||
|
return effect_text
|
||||||
effect_text = effect_text.replace(
|
effect_text = effect_text.replace(
|
||||||
u'$effect_chance',
|
u'$effect_chance',
|
||||||
unicode(move.effect_chance),
|
unicode(move.effect_chance),
|
||||||
|
|
Loading…
Reference in a new issue