diff options
author | Alexander Kabui | 2021-09-27 17:29:27 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-09-27 17:29:27 +0300 |
commit | f51a09e2c5f594425531fe26e8237b09fb6909ae (patch) | |
tree | 7569cd4bd8a06b43d90227ac8e62c3d55281bf4f /gn3 | |
parent | 62054d914efb4322fba311f968cb27b662aa6806 (diff) | |
download | genenetwork3-f51a09e2c5f594425531fe26e8237b09fb6909ae.tar.gz |
return str error for exception
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/computations/wgcna.py | 5 |
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) + } |