summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-13 11:44:26 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-13 11:44:26 +0100
commit152bd708a2b3e4816faef0ebec7a5dbf7f3b8120 (patch)
treeb67daaa71e3fdf21ddbeff45d67b21197bd9ebb3 /pykolab
parent0c8d510df94bacbea289d6738a00d0b56928fcf6 (diff)
downloadpykolab-152bd708a2b3e4816faef0ebec7a5dbf7f3b8120.tar.gz
Attempt to convert the current LDAP quota to an integer and fail silently should this fail
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/ldap/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 22c3dfa..341ae32 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -979,6 +979,11 @@ class LDAP(pykolab.base.Base):
}
)
+ try:
+ current_ldap_quota = (int)(current_ldap_quota)
+ except:
+ current_ldap_quota = None
+
if not current_ldap_quota == None:
if not new_quota == (int)(current_ldap_quota):
self.set_entry_attribute(