aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-09-27 19:14:58 +0300
committerAlexander Kabui2021-09-27 19:14:58 +0300
commitb6097cff6431e50c132f46dc0d3e1b841897da0f (patch)
treef4cd943692c209d48da518e85dd48181c1048885
parent0d60b01476e49b094944c1ba4136e4cc8c28aaba (diff)
downloadgenenetwork3-b6097cff6431e50c132f46dc0d3e1b841897da0f.tar.gz
add file not found exception
-rw-r--r--gn3/computations/wgcna.py4
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"
}