From f51a09e2c5f594425531fe26e8237b09fb6909ae Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Mon, 27 Sep 2021 17:29:27 +0300 Subject: return str error for exception --- gn3/computations/wgcna.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gn3') 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) + } -- cgit v1.2.3