Fix missing format directive.

This commit is contained in:
yrriban 2025-04-28 15:49:17 -04:00
parent b71c8c0694
commit 6bc71d5c5f

View file

@ -54,7 +54,7 @@ def DsdaPreamble(wad, mapstr):
def DemoInPath(wad, mapstr): def DemoInPath(wad, mapstr):
candidates = [x for x in DEMOS.joinpath(wad).glob("{}_map{}*.lmp".format(wad, mapstr))] candidates = [x for x in DEMOS.joinpath(wad).glob("{}_map{}*.lmp".format(wad, mapstr))]
if len(candidates) == 0: 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: if len(candidates) == 1:
return candidates[0] return candidates[0]
return sorted(filter(lambda s : re.search("-", str(s)), candidates))[-1] return sorted(filter(lambda s : re.search("-", str(s)), candidates))[-1]