From 624e9083323a9eda0bd6cdb2a57ba19d31d507d0 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Wed, 16 May 2018 14:12:02 +0200 Subject: [PATCH] Fix syntax and variable name in logging Signed-off-by: Jonatan Schlag --- src/nitsi/recipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nitsi/recipe.py b/src/nitsi/recipe.py index 56f1e75..7872aa3 100644 --- a/src/nitsi/recipe.py +++ b/src/nitsi/recipe.py @@ -39,13 +39,13 @@ class recipe(): if not os.path.isfile(self.recipe_file): self.log.error("{} is not a file".format(self.recipe_file)) - raise RecipeExeption("{} is not a file".format(self.recipe_file)()) + raise RecipeExeption("{} is not a file".format(self.recipe_file)) try: with open(self.recipe_file) as fobj: self.raw_recipe = fobj.readlines() except FileNotFoundError as error: - self.log.error("No such file: {}".format(vm_xml_file)) + self.log.error("No such file: {}".format(self.recipe_file)) raise error @property -- 2.39.2