Explorar el Código

[core] UnboundLocalError in kt_renewer.py hides permissions issues

Romain Rigaux hace 13 años
padre
commit
f7e9f4ff61
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      desktop/core/src/desktop/kt_renewer.py

+ 2 - 1
desktop/core/src/desktop/kt_renewer.py

@@ -75,8 +75,9 @@ def detect_conf_var():
   Sun Java Krb5LoginModule in Java6, so we need to take an action to work
   Sun Java Krb5LoginModule in Java6, so we need to take an action to work
   around it.
   around it.
   """
   """
+  f = file(CONF.CCACHE_PATH.get(), "rb")
+
   try:
   try:
-    f = file(CONF.CCACHE_PATH.get(), "rb")
     data = f.read()
     data = f.read()
     return "X-CACHECONF:" in data
     return "X-CACHECONF:" in data
   finally:
   finally: