From: Jonatan Schlag Date: Wed, 16 May 2018 12:12:02 +0000 (+0200) Subject: Fix syntax and variable name in logging X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=624e9083323a9eda0bd6cdb2a57ba19d31d507d0 Fix syntax and variable name in logging Signed-off-by: Jonatan Schlag --- 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