Branch 'pykolab-0.6' - pykolab/auth

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sun Feb 16 11:18:29 CET 2014


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

New commits:
commit 58484d0760ca521f2a162237eaa6007b3657d518
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