aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorAlexander Kabui2021-09-27 17:29:27 +0300
committerAlexander Kabui2021-09-27 17:29:27 +0300
commitf51a09e2c5f594425531fe26e8237b09fb6909ae (patch)
tree7569cd4bd8a06b43d90227ac8e62c3d55281bf4f /gn3/computations
parent62054d914efb4322fba311f968cb27b662aa6806 (diff)
downloadgenenetwork3-f51a09e2c5f594425531fe26e8237b09fb6909ae.tar.gz
return str error for exception
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/wgcna.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn3/computations/wgcna.py b/gn3/computations/wgcna.py
index 436a888..1ee55f5 100644
--- a/gn3/computations/wgcna.py
+++ b/gn3/computations/wgcna.py
@@ -45,4 +45,7 @@ def call_wgcna_script(rscript_path: str, request_data: dict):
**run_cmd_results
}
except Exception as error:
- raise error
+ # relook at handling errors gn3
+ return {
+ "output": str(error)
+ }