diff options
author | Alexander Kabui | 2021-09-27 19:14:58 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-09-27 19:14:58 +0300 |
commit | b6097cff6431e50c132f46dc0d3e1b841897da0f (patch) | |
tree | f4cd943692c209d48da518e85dd48181c1048885 /gn3/computations | |
parent | 0d60b01476e49b094944c1ba4136e4cc8c28aaba (diff) | |
download | genenetwork3-b6097cff6431e50c132f46dc0d3e1b841897da0f.tar.gz |
add file not found exception
Diffstat (limited to 'gn3/computations')
-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" } |