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

Merged -- no conflict

...@@ -1000,14 +1000,14 @@ class ModuleCache(object): ...@@ -1000,14 +1000,14 @@ class ModuleCache(object):
try: try:
shutil.rmtree(to_delete) shutil.rmtree(to_delete)
debug('Deleted: %s' % to_delete) debug('Deleted: %s' % to_delete)
except: except Exception:
warning('Could not delete %s' % to_delete) warning('Could not delete %s' % to_delete)
continue continue
to_rename = os.path.join(self.dirname, base_dir) to_rename = os.path.join(self.dirname, base_dir)
if os.path.isdir(to_rename): if os.path.isdir(to_rename):
try: try:
shutil.move(to_rename, to_delete) shutil.move(to_rename, to_delete)
except: except Exception:
warning('Could not move %s to %s' % warning('Could not move %s to %s' %
(to_rename, to_delete)) (to_rename, to_delete))
finally: finally:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论