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

Avoid crash on unpickle failure (safer for 0.4 official release)

上级 2bc18ec9
......@@ -462,11 +462,9 @@ class ModuleCache(object):
shutil.rmtree(root)
continue
except:
# For now, raise exceptions, in order to be able to
# figure out which exceptions should be caught.
# TODO Make it more user-friendly by not raising
# the exception.
raise
# TODO Note that in a development version, it may
# be better to raise exceptions instead of silently
# catching them.
unpickle_failure()
if False:
info("Erasing broken cache directory", root)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论