~comcloudway/builds.sr.ht

fe7231712206f20e073cda658dc549edffa14b1f — SatowTakeshi 5 years ago 7ad6e5e
Fix string format for error message
1 files changed, 2 insertions(+), 2 deletions(-)

M buildsrht/manifest.py
M buildsrht/manifest.py => buildsrht/manifest.py +2 -2
@@ 42,8 42,8 @@ class Task:
            self.name = key
            self.script = yml[key].strip()
        if not re.match(r"^[a-z0-9_-]+$", self.name) or len(self.name) > 128:
            raise Exception("Task name '{}' is invalid (must be all lowercase letters, " +
                "numbers, underscores, and dashes, and <=128 characters)".format(self.name))
            raise Exception(f"Task name '{self.name}' is invalid (must be all lowercase letters, " +
                "numbers, underscores, and dashes, and <=128 characters)")

    def __repr__(self):
        return "<Task {}>".format(self.name)