aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-10-06 17:24:38 +0300
committerFrederick Muriuki Muriithi2022-10-06 17:24:38 +0300
commita23030f2cfdb4fd42117c4144db58aee7f2aee87 (patch)
tree54987f0de77088923cf0b82d22ca79bcc751bec3 /wqflask
parent575f08119c7aff56ff86c4fc30ab2eaab061d11d (diff)
downloadgenenetwork2-a23030f2cfdb4fd42117c4144db58aee7f2aee87.tar.gz
DEBUG: Collect more info to debug CI/CD
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 47f13b20..0b0e31c1 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -825,11 +825,19 @@ def __handle_correlation_error__(exc):
@app.route("/corr_compute", methods=('POST',))
def corr_compute_page():
+ import subprocess
+ from gn3.settings import CORRELATION_COMMAND
try:
correlation_results = compute_correlation(
request.form, compute_all=True)
except WrongCorrelationType as exc:
return __handle_correlation_error__(exc)
+ except subprocess.CalledProcessError as cpe:
+ actual_command = (
+ os.readlink(CORRELATION_COMMAND)
+ if os.path.islink(CORRELATION_COMMAND)
+ else CORRELATION_COMMAND)
+ raise Exception(command_list, actual_command, cpe.stdout) from cpe
correlation_results = set_template_vars(request.form, correlation_results)
return render_template("correlation_page.html", **correlation_results)