From 10ac64c1dce5d3ed072953a58ccb84fe0994a10b Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Wed, 17 Apr 2019 03:57:47 -0400 Subject: [PATCH] Fix formatting of duplicate task error message --- buildsrht/manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildsrht/manifest.py b/buildsrht/manifest.py index 2ceb4b7..90916e5 100644 --- a/buildsrht/manifest.py +++ b/buildsrht/manifest.py @@ -95,7 +95,7 @@ class Manifest: self.tasks = [Task(t) for t in tasks] for task in self.tasks: if len([t for t in self.tasks if t.name == task.name]) != 1: - raise Exception("Duplicate task '{}'", task.name) + raise Exception(f"Duplicate task '{task.name}'") triggers = self.yaml.get("triggers") self.triggers = [Trigger(t) for t in triggers] if triggers else [] -- 2.38.5