diff --git a/simpa/utils/settings.py b/simpa/utils/settings.py index 27f0871f..9d9d496f 100644 --- a/simpa/utils/settings.py +++ b/simpa/utils/settings.py @@ -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