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

Better error msg

上级 d7fa2289
...@@ -846,14 +846,15 @@ class ModuleCache(object): ...@@ -846,14 +846,15 @@ class ModuleCache(object):
get_safe_part(key), get_safe_part(key),
[]).append(key) []).append(key)
else: else:
dir1 = os.path.dirname(self.entry_from_key[key])
dir2 = os.path.dirname(entry)
_logger.warning( _logger.warning(
"The same cache key is associated to " "The same cache key is associated to "
"different modules (%s and %s). This " "different modules (%s and %s). This "
"is not supposed to happen! You may " "is not supposed to happen! You may "
"need to manually delete your cache " "need to manually delete your cache "
"directory to fix this.", "directory to fix this.",
self.entry_from_key[key], dir1, dir2)
entry)
# Clean up the name space to prevent bug. # Clean up the name space to prevent bug.
if key_data.keys: if key_data.keys:
del key del key
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论