Explorar o código

[core] UnboundLocalError in kt_renewer.py hides permissions issues

Romain Rigaux %!s(int64=13) %!d(string=hai) anos
pai
achega
f7e9f4f
Modificáronse 1 ficheiros con 2 adicións e 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
   around it.
   """
+  f = file(CONF.CCACHE_PATH.get(), "rb")
+
   try:
-    f = file(CONF.CCACHE_PATH.get(), "rb")
     data = f.read()
     return "X-CACHECONF:" in data
   finally: