1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #12384: Add a three-second timeout for RSS reader widget

This commit is contained in:
jeremystretch
2023-05-01 16:19:39 -04:00
parent 261f5e4995
commit 9319cffb1c
3 changed files with 39 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
{% if not feed.bozo %}
{% if feed and not feed.bozo %}
<div class="list-group list-group-flush">
{% for entry in feed.entries %}
<div class="list-group-item px-1">
@@ -16,7 +16,9 @@
<span class="text-danger">
<i class="mdi mdi-alert"></i> There was a problem fetching the RSS feed:
</span>
<pre class="m-2">
Response status: {{ feed.status }}
Error: {{ feed.bozo_exception|escape }}</pre>
{% if feed %}
{{ feed.bozo_exception|escape }} (HTTP {{ feed.status }})
{% else %}
{{ error }}
{% endif %}
{% endif %}