Skip to content

Commit

Permalink
Merge branch 'main' into iql_comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Sep 26, 2023
2 parents f4530c9 + 43308cc commit ed0860d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmarl/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,12 @@ def _setup_logger(self):
def run(self):
try:
self._collection_loop()
except KeyboardInterrupt as interrupt:
print("\n\nExperiment was closed gracefully\n\n")
self.close()
raise interrupt
except Exception as err:
print("\n\nExperiment failed and is closing gracefully\n\n")
self.close()
raise err

Expand Down

0 comments on commit ed0860d

Please sign in to comment.