提交 85e4fae0 authored 作者: carriepl's avatar carriepl

Merge pull request #3072 from nouiz/unlocker

Remove an error when Theano process exit.
......@@ -369,6 +369,8 @@ class Unlocker(object):
# the same try/except block. The reason is that while the attempt to
# remove the file may fail (e.g. because for some reason this file does
# not exist), we still want to try and remove the directory.
if os is None:
return
try:
os.remove(os.path.join(self.tmp_dir, 'lock'))
except Exception:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论