From cbb97ae726bb0d5f3381a765b16754595251685b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 1 Jun 2022 18:46:37 +0200 Subject: [PATCH] LdapClient.update_need: fix handling None changes --- mylib/ldap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mylib/ldap.py b/mylib/ldap.py index fc8fce8..082d395 100644 --- a/mylib/ldap.py +++ b/mylib/ldap.py @@ -697,6 +697,8 @@ class LdapClient: :param changes: The changes as returned by get_changes """ + if changes is None: + return False assert self._conn or self.initialize() return self._conn.update_need( changes[0], changes[1],