diff --git a/netbox/utilities/security.py b/netbox/utilities/security.py index 47a18d265..be59f21f5 100644 --- a/netbox/utilities/security.py +++ b/netbox/utilities/security.py @@ -9,7 +9,7 @@ def validate_peppers(peppers): """ Validate the given dictionary of cryptographic peppers for type & sufficient length. """ - if type(peppers) is not dict: + if not isinstance(peppers, dict): raise ImproperlyConfigured("API_TOKEN_PEPPERS must be a dictionary.") for key, pepper in peppers.items(): if type(key) is not int: