提交 5754e615 authored 作者: Frederic's avatar Frederic

Fix just inserted crash due to a new assert.

It is a todo to find a better fix, but to don't cause probleme, here is a work around.
上级 ace3920c
......@@ -923,8 +923,11 @@ class ModuleCache(object):
# The op has c_code, so take the lock.
compilelock.get_lock()
lock_taken = True
assert os.path.exists(location), (
"The directory just created shouldn't be deleted!")
if not os.path.exists(location):
# Temporary fix, we should make sure it don't
# get deleted by the clear*() fct.
os.makedirs(path)
if module_hash in self.module_hash_to_key_data:
_logger.debug("Duplicated module! Will re-use the "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论