Browse Source

[core] UnboundLocalError in kt_renewer.py hides permissions issues

Romain Rigaux 13 years ago
parent
commit
f7e9f4f
1 changed files with 2 additions and 1 deletions
  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: