From 26d2da7b988362d24422d684983e71b8b32f90c8 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Tue, 26 Oct 2021 14:18:18 -0400 Subject: [PATCH] Initialize Config with empty dict --- netbox/netbox/config/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/config/__init__.py b/netbox/netbox/config/__init__.py index 3786c5dc8..bd70e2e41 100644 --- a/netbox/netbox/config/__init__.py +++ b/netbox/netbox/config/__init__.py @@ -43,7 +43,7 @@ class Config: must be re-instantiated each time it's necessary to check for updates to the cached config. """ def __init__(self): - self.config = cache.get('config') + self.config = cache.get('config') or {} self.version = cache.get('config_version') self.defaults = {param.name: param.default for param in PARAMS} logger.debug("Loaded configuration data from cache")