diff options
-rw-r--r-- | gn3/computations/wgcna.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/computations/wgcna.py b/gn3/computations/wgcna.py index 1ee55f5..fd508fa 100644 --- a/gn3/computations/wgcna.py +++ b/gn3/computations/wgcna.py @@ -44,8 +44,8 @@ def call_wgcna_script(rscript_path: str, request_data: dict): "data": json.load(outputfile), **run_cmd_results } - except Exception as error: + except FileNotFoundError: # relook at handling errors gn3 return { - "output": str(error) + "output": "output file not found" } |