提交 66c0c86f authored 作者: Frederic Bastien's avatar Frederic Bastien

Catch the good exception.

上级 d9d7c014
......@@ -400,7 +400,7 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa
for protected_var in protected_list:
try:
root_destroyer[droot[protected_var]]
except AttributeError:
except KeyError:
pass
else:
return True
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论