提交 76fda356 编写于 作者: P panfengfeng

fix randomaffine error

上级 4c32d7e6
......@@ -120,7 +120,7 @@ def check_degrees(degrees):
degrees = (-degrees, degrees)
elif isinstance(degrees, (list, tuple)):
if len(degrees) != 2:
raise ValueError("If degrees is a sequence, the length must be 2.")
raise TypeError("If degrees is a sequence, the length must be 2.")
else:
raise TypeError("Degrees must be a single non-negative number or a sequence")
return degrees
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册