diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/wgcna/gn3_wgcna.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/wqflask/wqflask/wgcna/gn3_wgcna.py b/wqflask/wqflask/wgcna/gn3_wgcna.py index 17599711..7bf5c62b 100644 --- a/wqflask/wqflask/wgcna/gn3_wgcna.py +++ b/wqflask/wqflask/wgcna/gn3_wgcna.py @@ -98,12 +98,7 @@ def run_wgcna(form_data): status_code = response.status_code response = response.json() - if status_code != 200: - return { - "error": response - } - - return { + return {"error": response} if status_code != 200 else { "error": 'null', "results": response, "data": process_wgcna_data(response["data"]), |