Skip to content

Commit

Permalink
changed to idiomatic syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
faberno committed Nov 15, 2024
1 parent 63b09d7 commit 66fa6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simpa/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __delitem__(self, key):
raise KeyError("The key '{}' is not in the Settings dictionary".format(key)) from None

def get(self, key, default=None):
if self.__contains__(key):
if key in self:
return self[key]
return default

Expand Down

0 comments on commit 66fa6c5

Please sign in to comment.