From 6ca397279e09d968679930f429d6341798be990e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 22 Jan 2024 09:27:58 +0300 Subject: scripts: Pass in logger to get detailed updates. --- qc_app/upload/rqtl2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qc_app/upload') diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index 8a0d8b4..7805114 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -592,7 +592,9 @@ def rqtl2_processing_status(jobid: UUID): if not bool(thejob): return render_template("rqtl2/no-such-job.html", jobid=jobid) - logmessages = rconn.lrange(thejob.get("log-messagelist"), 0, -1) or [] + messagelistname = thejob.get("log-messagelist") + logmessages = (rconn.lrange(messagelistname, 0, -1) + if bool(messagelistname) else []) if thejob["status"] == "error": return render_template( -- cgit v1.2.3