Commit c926bb68 by Brian Coca

Merge pull request #10901 from mscherer/fix_var_not_exist

Fix pylint error on "cachefile does not exist"
parents 108a1e15 8d324e6a
......@@ -108,6 +108,7 @@ class CacheModule(BaseCacheModule):
return keys
def contains(self, key):
cachefile = "%s/%s" % (self._cache_dir, key)
if key in self._cache:
return True
......@@ -115,7 +116,7 @@ class CacheModule(BaseCacheModule):
if self.has_expired(key):
return False
try:
st = os.stat("%s/%s" % (self._cache_dir, key))
st = os.stat(cachefile)
return True
except (OSError,IOError), e:
if e.errno == errno.ENOENT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment