Ver Fonte

[core] UnboundLocalError in kt_renewer.py hides permissions issues

Romain Rigaux há 13 anos atrás
pai
commit
f7e9f4ff61
1 ficheiros alterados com 2 adições e 1 exclusões
  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: