提交 f46a6c00 authored 作者: Frederic's avatar Frederic

fix error returned.

上级 0efb754f
...@@ -340,7 +340,7 @@ def ifelse(condition, then_branch, else_branch, name=None): ...@@ -340,7 +340,7 @@ def ifelse(condition, then_branch, else_branch, name=None):
if then_branch_elem.type != else_branch_elem.type: if then_branch_elem.type != else_branch_elem.type:
# If the types still don't match, there is a problem. # If the types still don't match, there is a problem.
raise ValueError( raise TypeError(
'The two branches should have identical types, but ' 'The two branches should have identical types, but '
'they are %s and %s respectively. This error could be ' 'they are %s and %s respectively. This error could be '
'raised if for example you provided a one element ' 'raised if for example you provided a one element '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论