Skip to content

Commit 667a79f

Browse files
committed
Improve traceback print during case.run_study()
1 parent 810f8e2 commit 667a79f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cadetrdm/batch_running/case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import traceback
12
from pathlib import Path
23

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

143144
except (KeyboardInterrupt, Exception) as e:
144-
print(f"Command execution failed: {e}")
145+
traceback.print_exc()
145146
self.status = 'failed'
146147
return
147148

0 commit comments

Comments
 (0)