From a2532d7cf93eb1f0312d009ddff5cd37d6a78915 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 19 Nov 2020 11:20:15 +0000 Subject: [PATCH] accounts: Correctly return when objects cannot be sorted Signed-off-by: Michael Tremer --- src/backend/accounts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/accounts.py b/src/backend/accounts.py index a3c8297b..8da02a58 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -644,6 +644,8 @@ class Account(LDAPObject): if isinstance(other, self.__class__): return self.name < other.name + return NotImplemented + def _clear_cache(self): # Delete cached attributes self.memcache.delete("accounts:%s:attrs" % self.dn) -- 2.47.3