fixed another bug
This commit is contained in:
parent
aadea84517
commit
8aaffe67bd
11
games.py
11
games.py
|
@ -560,10 +560,13 @@ class game(object):
|
||||||
if self.voice.post_format != []:
|
if self.voice.post_format != []:
|
||||||
format_list = []
|
format_list = []
|
||||||
for extra_format in self.voice.post_format:
|
for extra_format in self.voice.post_format:
|
||||||
if extra_format == "base":
|
try:
|
||||||
format_list.append(base_string(result["base"]))
|
if extra_format == "base":
|
||||||
elif extra_format == "runner":
|
format_list.append(base_string(result["base"]))
|
||||||
format_list.append(result["runner"])
|
elif extra_format == "runner":
|
||||||
|
format_list.append(result["runner"])
|
||||||
|
except KeyError:
|
||||||
|
format_list.append("None")
|
||||||
self.voice.post_format = []
|
self.voice.post_format = []
|
||||||
result["displaytext"] = result["displaytext"].format(*format_list)
|
result["displaytext"] = result["displaytext"].format(*format_list)
|
||||||
return (result, 0)
|
return (result, 0)
|
||||||
|
|
Loading…
Reference in a new issue