提交 c9e54e0e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Be more specific when catching exceptions.

上级 281ba3c9
......@@ -845,7 +845,7 @@ def local_shape_to_shape_i(node):
def local_track_shape_i(node):
try:
shape_feature = node.env.shape_feature
except:
except AttributeError:
return
if node in shape_feature.scheduled:
assert isinstance(node.op, Shape_i)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论