aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/wgcna.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/api/wgcna.py b/gn3/api/wgcna.py
index 89784c4..fa044cf 100644
--- a/gn3/api/wgcna.py
+++ b/gn3/api/wgcna.py
@@ -19,4 +19,7 @@ def run_wgcna():
results = call_wgcna_script(wgcna_script, wgcna_data)
+ if results.get("data") is None:
+ return jsonify(results), 401
+
return jsonify(results), 200