提交 a747b4d7 authored 作者: Frederic's avatar Frederic

Fix the condition to test the right thing.

上级 c2e3b5b5
......@@ -797,7 +797,7 @@ class ModuleCache(object):
_logger.info("deleting ModuleCache entry %s", entry)
key_data.delete_keys_from(self.entry_from_key)
del self.module_hash_to_key_data[module_hash]
if os.path.exists(key_data.key_pkl):
if key_data.keys and list(key_data.keys)[0][0]:
# this is a versioned entry, so should have been on
# disk. Something weird happened to cause this, so we
# are responding by printing a warning, removing
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论