From fe7231712206f20e073cda658dc549edffa14b1f Mon Sep 17 00:00:00 2001 From: SatowTakeshi Date: Mon, 15 Apr 2019 00:16:19 +0900 Subject: [PATCH] Fix string format for error message --- buildsrht/manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildsrht/manifest.py b/buildsrht/manifest.py index d69f7e9..2ceb4b7 100644 --- a/buildsrht/manifest.py +++ b/buildsrht/manifest.py @@ -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 "".format(self.name) -- 2.38.5