Skip to content

Commit

Permalink
Improve traceback print during case.run_study()
Browse files Browse the repository at this point in the history
  • Loading branch information
ronald-jaepel committed Jan 29, 2025
1 parent 810f8e2 commit 667a79f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cadetrdm/batch_running/case.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import traceback
from pathlib import Path

from .study import Study
Expand Down Expand Up @@ -141,7 +142,7 @@ def run_study(self, force=False):
self.status = 'finished'

except (KeyboardInterrupt, Exception) as e:
print(f"Command execution failed: {e}")
traceback.print_exc()
self.status = 'failed'
return

Expand Down

0 comments on commit 667a79f

Please sign in to comment.