mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 16:06:43 -06:00
Improved error message
Improved error handling in the get_feed() method to provide a more descriptive error message when NetBox is unable to connect to the feed server. Instead of returning the original exception, we now return a custom error message for better clarity and security.
This commit is contained in:
parent
786f0cc7f3
commit
17474b0033
@ -320,7 +320,7 @@ class RSSFeedWidget(DashboardWidget):
|
||||
response.raise_for_status()
|
||||
except requests.exceptions.RequestException as e:
|
||||
return {
|
||||
'error': e,
|
||||
'error': 'NetBox is unable to connect to feed server...',
|
||||
}
|
||||
|
||||
# Parse feed content
|
||||
|
Loading…
Reference in New Issue
Block a user