Fix missing format directive.
This commit is contained in:
parent
b71c8c0694
commit
6bc71d5c5f
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def DsdaPreamble(wad, mapstr):
|
|||
def DemoInPath(wad, mapstr):
|
||||
candidates = [x for x in DEMOS.joinpath(wad).glob("{}_map{}*.lmp".format(wad, mapstr))]
|
||||
if len(candidates) == 0:
|
||||
raise Exception("no suitable demo candidates for WAD {} MAP {}.", wad, mapstr)
|
||||
raise Exception("no suitable demo candidates for WAD {} MAP {}.".format(wad, mapstr))
|
||||
if len(candidates) == 1:
|
||||
return candidates[0]
|
||||
return sorted(filter(lambda s : re.search("-", str(s)), candidates))[-1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue