diff options
author | BonfaceKilz | 2021-09-27 13:08:49 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-09-27 13:22:01 +0300 |
commit | 8135bd22898130ae6f58aa74cb80c83ab334d0d4 (patch) | |
tree | bb04e13b8a0ab6bcb4c68a70cf550ea5d8f5d428 | |
parent | 3494a9af7f82691f419ba1e3bd616be5ce68a00a (diff) | |
download | genenetwork2-8135bd22898130ae6f58aa74cb80c83ab334d0d4.tar.gz |
Remove variable-- named after a python keyword-- called "list"
-rw-r--r-- | wqflask/wqflask/views.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 1139ad43..007b0f9e 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -184,9 +184,8 @@ def handle_generic_exceptions(e): # Use a cookie to have one animation on refresh animation = request.cookies.get(err_msg[:32]) if not animation: - list = [fn for fn in os.listdir( - "./wqflask/static/gif/error") if fn.endswith(".gif")] - animation = random.choice(list) + animation = random.choice([fn for fn in os.listdir( + "./wqflask/static/gif/error") if fn.endswith(".gif")]) resp = make_response(render_template("error.html", message=err_msg, stack=formatted_lines, error_image=animation, version=GN_VERSION)) |