edges: migrate to f-string

This commit is contained in:
Rotzbua 2023-01-23 20:08:04 +01:00 committed by Florian Festi
parent 4a957c2f8b
commit b2cee8de97
1 changed files with 2 additions and 3 deletions

View File

@ -207,7 +207,7 @@ class Settings:
else:
t = type(default)
group.add_argument("--%s_%s" % (prefix, name),
group.add_argument(f"--{prefix}_{name}",
type=t,
action="store", default=default,
choices=choices,
@ -271,8 +271,7 @@ class Settings:
elif name in self.relative_params:
self.values[name] = value * factor
else:
raise ValueError("Unknown parameter for %s: %s" % (
self.__class__.__name__, name))
raise ValueError(f"Unknown parameter for {self.__class__.__name__}: {name}")
self.checkValues()
def checkValues(self) -> None: