From 072937a4f2e8c64b2d05526c3e6ce412da1954f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 16 May 2015 15:20:36 +0200 Subject: Fix NoAppliableSolution in loop and changed looping phase --- scripts/loop.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/loop.py b/scripts/loop.py index 9cae754..0fd3639 100755 --- a/scripts/loop.py +++ b/scripts/loop.py @@ -33,7 +33,15 @@ def step(): phase_set(5) elif phs == 5: phase_message(5) - solution.apply() + try: + solution.apply() + except exceptions.NoApplicableSolution: + try: + os.mkdir(sf(conf.result_folder)) + except FileExistsError: + pass + print('\nAll done.') + exit(0) phase_set(6) elif phs == 6: phase_message(6) @@ -50,7 +58,7 @@ def step(): elif phs == 8: phase_message(8) if conf.only_config: - phase_set(2) + phase_set(3) else: phase_set(9) elif phs == 9: @@ -66,7 +74,7 @@ def step(): phase_set(12) elif phs == 12: phase_message(12) - phase_set(2) + phase_set(3) # Phase # phases = ("Not Initialized", #0 -- cgit v1.2.3