提交 aecc8f26 编写于 作者: M MRXLT

change systemexit to valueerror

上级 4e51c221
...@@ -177,7 +177,7 @@ class Client(object): ...@@ -177,7 +177,7 @@ class Client(object):
# create predictor here # create predictor here
if endpoints is None: if endpoints is None:
if self.predictor_sdk_ is None: if self.predictor_sdk_ is None:
raise SystemExit( raise ValueError(
"You must set the endpoints parameter or use add_variant function to create a variant." "You must set the endpoints parameter or use add_variant function to create a variant."
) )
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册