aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorArun Isaac2024-01-02 22:39:25 +0000
committerArun Isaac2024-01-02 22:41:24 +0000
commitc1d377ec86b902f76e47fc4506a9ff260d788082 (patch)
tree7ad090e1681241a27f834c802f30f1cd09324cae /gn2
parent76361775a348de9e014b59e21dbe444cdb8467ba (diff)
downloadgenenetwork2-c1d377ec86b902f76e47fc4506a9ff260d788082.tar.gz
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.
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
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},