فهرست منبع

Fix #18314: Use get to avoid KeyError

Tobias Genannt 1 سال پیش
والد
کامیت
4ae5529362
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      netbox/extras/dashboard/widgets.py

+ 1 - 1
netbox/extras/dashboard/widgets.py

@@ -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,
             }