Skip to content

Commit 3c5b7b5

Browse files
committed
Fix netbox-community#18314: Use get to avoid KeyError
1 parent ed54122 commit 3c5b7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/extras/dashboard/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def cache_key(self):
314314
return f'dashboard_rss_{url_checksum}'
315315

316316
def get_feed(self):
317-
if self.config['requires_internet'] and settings.ISOLATED_DEPLOYMENT:
317+
if self.config.get('requires_internet') and settings.ISOLATED_DEPLOYMENT:
318318
return {
319319
'isolated_deployment': True,
320320
}

0 commit comments

Comments
 (0)