From 44bf5e12bff9f4e791865ff0d180b212ad0c2c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Mon, 16 Jan 2023 19:39:28 +0100 Subject: [PATCH] Make exceptions look better --- discord_rss_bot/templates/feed.html | 8 +++++++- discord_rss_bot/templates/index.html | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/discord_rss_bot/templates/feed.html b/discord_rss_bot/templates/feed.html index b3524cb..402ef3f 100644 --- a/discord_rss_bot/templates/feed.html +++ b/discord_rss_bot/templates/feed.html @@ -7,7 +7,13 @@ {% if not feed.updates_enabled %}Disabled{% endif %} - {% if feed.last_exception %}Last exception: {{ feed.last_exception }}{% endif %} + {% if feed.last_exception %} +

{{ feed.last_exception.type_name }}:

+ {{ feed.last_exception.value_str }} + +
{{ feed.last_exception.traceback_str }}
+ + {% endif %}