From c1d377ec86b902f76e47fc4506a9ff260d788082 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 2 Jan 2024 22:39:25 +0000 Subject: Fix path to error GIFs. genenetwork2 is now run from the top-level directory of the repo. So, we prepend gn2 to the error GIF path. * gn2/wqflask/views.py (handle_generic_exceptions): Prepend gn2 to error GIF path. --- gn2/wqflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 155769d6..4728553a 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -137,7 +137,7 @@ def handle_generic_exceptions(e): animation = request.cookies.get(err_msg[:32]) if not animation: animation = random.choice([fn for fn in os.listdir( - "./wqflask/static/gif/error") if fn.endswith(".gif")]) + "./gn2/wqflask/static/gif/error") if fn.endswith(".gif")]) resp = make_response(render_template("error.html", message=err_msg, stack={formatted_lines}, -- cgit v1.2.3