diff --git a/ldapcherry/backend/__init__.py b/ldapcherry/backend/__init__.py index 60d6fa9..1957589 100644 --- a/ldapcherry/backend/__init__.py +++ b/ldapcherry/backend/__init__.py @@ -43,7 +43,7 @@ class Backend: def get_param(self, param, default=None): if param in self.config: return self.config[param] - elif not default is None: + elif default is not None: return default else: raise MissingParameter('backends', self.backend_name + '.' + param)