ソースを参照

[core] UnboundLocalError in kt_renewer.py hides permissions issues

Romain Rigaux 13 年 前
コミット
f7e9f4f
1 ファイル変更2 行追加1 行削除
  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: