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