diff --git a/src/gevopy/VERSION b/src/gevopy/VERSION index 1cc5f65..8cfbc90 100755 --- a/src/gevopy/VERSION +++ b/src/gevopy/VERSION @@ -1 +1 @@ -1.1.0 \ No newline at end of file +1.1.1 \ No newline at end of file diff --git a/src/gevopy/experiments.py b/src/gevopy/experiments.py index 4b0f3a1..bb32454 100644 --- a/src/gevopy/experiments.py +++ b/src/gevopy/experiments.py @@ -207,6 +207,9 @@ def run(self, max_generation=None, max_score=None): self.eval_phenotypes(self.fitness, save=True) execution.halloffame.update(self.get_phenotypes()) logger.info("Completed cycle; %s", execution.best_score) + except KeyboardInterrupt: + logger.error("Experiment cancelled by the user 'CTRL+C'") + return execution except Exception as err: logger.error("Error %s raised during experiment execution", err) raise err