diff options
author | Munyoki Kilyungi | 2024-08-29 12:57:13 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 14:51:30 +0300 |
commit | 50fb34a131a762cbe4e7fe8e19e7eb9dd13aa249 (patch) | |
tree | 4add3255aaddc56cbe308c904e83318a329fed3e /gn2/wqflask/templates | |
parent | 3285757d2e5846089ed1f688e4f9cf448dde378a (diff) | |
download | genenetwork2-50fb34a131a762cbe4e7fe8e19e7eb9dd13aa249.tar.gz |
Handle errors correctly during wiki entry fetch.
* gn2/wqflask/templates/wiki/genewiki.html: Flash messages during
errors.
* gn2/wqflask/views.py (display_genewiki_page): Use
"raise_for_status()" to handle errors.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r-- | gn2/wqflask/templates/wiki/genewiki.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html index 63f36741..496f5e28 100644 --- a/gn2/wqflask/templates/wiki/genewiki.html +++ b/gn2/wqflask/templates/wiki/genewiki.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block title %}GeneWiki Entry for {{ symbol }}{% endblock %} {% block content %} + {{ flash_me() }} <div class = "container"> <h1 class = "page-header">GeneWiki Entries</h1> <p> |