From 56ff26f2784172467ee151b7372faf23d488a481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20St=C3=A4hli?= Date: Fri, 22 Sep 2023 16:02:42 +0200 Subject: [PATCH] lint me --- djangocms_baseplugins/baseplugin/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_baseplugins/baseplugin/utils.py b/djangocms_baseplugins/baseplugin/utils.py index 6dc3ce2..21dd2db 100644 --- a/djangocms_baseplugins/baseplugin/utils.py +++ b/djangocms_baseplugins/baseplugin/utils.py @@ -70,7 +70,7 @@ def _check_one_setting(prefix, conf, settings, setting): dict_settings = getattr(settings, prefix, None) if dict_settings: value = dict_settings.get(setting, None) - if not value is None: # check for None, as [] and False are "falsy" + if value is not None: # check for None, as [] and False are "falsy" setattr(conf, setting, value) elif getattr(conf, setting, None) is None: # fallback, when a plugin is not up to date with settings