From: Jonatan Schlag Date: Sun, 29 Apr 2018 08:32:50 +0000 (+0200) Subject: Do not exit when fail to load the recipe X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=4bc54b45e481a2bb3e49009b35be30b10c1acb53;hp=8b744f18c280e53d4cb2562d7a3893c4cc4ef240 Do not exit when fail to load the recipe Signed-off-by: Jonatan Schlag --- diff --git a/test.py b/test.py index 89fe75c..c2d62ce 100755 --- a/test.py +++ b/test.py @@ -84,9 +84,11 @@ class test(): def load_recipe(self): try: self.recipe = recipe(self.recipe_file) - except BaseException: + for line in self.recipe.recipe: + self.log.debug(line) + except BaseException as e: self.log.error("Failed to load recipe") - exit(1) + raise e def run_recipe(self): for line in self.recipe.recipe: