diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-08-13 11:44:26 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-08-13 11:44:26 +0100 |
commit | 152bd708a2b3e4816faef0ebec7a5dbf7f3b8120 (patch) | |
tree | b67daaa71e3fdf21ddbeff45d67b21197bd9ebb3 /pykolab | |
parent | 0c8d510df94bacbea289d6738a00d0b56928fcf6 (diff) | |
download | pykolab-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__.py | 5 |
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( |