pykolab/auth

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sun Feb 16 11:20:43 CET 2014


 pykolab/auth/ldap/auth_cache.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4c5ba0430998dac6fce92b7de653b8a965619e2b
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Sun Feb 16 11:17:53 2014 +0100

    Missing if statement

diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py
index fe265f8..831e444 100644
--- a/pykolab/auth/ldap/auth_cache.py
+++ b/pykolab/auth/ldap/auth_cache.py
@@ -168,7 +168,7 @@ def init_db(reinit=False):
 
         if reinit:
             import os
-            os.path.isfile('%s/auth_cache.db' % (KOLAB_LIB_PATH)):
+            if os.path.isfile('%s/auth_cache.db' % (KOLAB_LIB_PATH)):
                 os.unlink('%s/auth_cache.db' % (KOLAB_LIB_PATH))
 
     echo = conf.debuglevel > 8




More information about the commits mailing list