Fix #18314: Use get to avoid KeyError

This commit is contained in:
Tobias Genannt 2025-01-07 09:47:11 +01:00 committed by Brian Tiemann
parent 48db63c102
commit f050b4c6d9

View File

@ -314,7 +314,7 @@ class RSSFeedWidget(DashboardWidget):
return f'dashboard_rss_{url_checksum}'
def get_feed(self):
if self.config['requires_internet'] and settings.ISOLATED_DEPLOYMENT:
if self.config.get('requires_internet') and settings.ISOLATED_DEPLOYMENT:
return {
'isolated_deployment': True,
}