diff --git a/mesaport/ProjectOps/project_ops.py b/mesaport/ProjectOps/project_ops.py index ab25417..9e7da3f 100644 --- a/mesaport/ProjectOps/project_ops.py +++ b/mesaport/ProjectOps/project_ops.py @@ -4,6 +4,7 @@ import subprocess import glob from itertools import repeat +import traceback from rich import print, progress, prompt, status progress_columns = (progress.SpinnerColumn(spinner_name="moon"), @@ -399,7 +400,7 @@ def runGyre(self, gyre_in, files='all', wdir=None, data_format="GYRE", silent=Tr for _ in pool.istarmap(ops_helper.run_subprocess, zip(*args)): progressbar.advance(task) except Exception as e: - print(e) + traceback.print_exc() pool.terminate() else: try: @@ -410,7 +411,7 @@ def runGyre(self, gyre_in, files='all', wdir=None, data_format="GYRE", silent=Tr try: executor.map(ops_helper.run_subprocess, *args) except Exception as e: - print(e) + traceback.print_exc() executor.shutdown(wait=False) except Exception as e: filenames = glob.glob(os.path.join(LOGS_dir, f"gyreprofile*.log"))