提交 ebe3e3b4 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed crash at exit time if cache was deleted

上级 0c1dcabd
......@@ -678,9 +678,10 @@ class ModuleCache(object):
# Remove entries that are not in the filesystem.
items_copy = list(self.module_hash_to_key_data.iteritems())
for module_hash, key_data in items_copy:
entry = key_data.get_entry()
try:
# Test to see that the file is [present and] readable.
open(key_data.get_entry()).close()
open(entry).close()
gone = False
except IOError:
gone = True
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论