Skip to content

Commit

Permalink
lint me
Browse files Browse the repository at this point in the history
  • Loading branch information
benzkji committed Sep 22, 2023
1 parent c3e0516 commit 56ff26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_baseplugins/baseplugin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56ff26f

Please sign in to comment.