diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index e3302c14239c8bfc37a6bafb39b112cfed5230fd..8baeea7e6b8e27cc2c06ae5aaa488144e60679ab 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -203,7 +203,7 @@ class Client(object): return if isinstance(feed[key], list) and len(feed[key]) != self.feed_tensor_len[key]: - raise SystemExit("The shape of feed tensor {} not match.".format( + raise ValueError("The shape of feed tensor {} not match.".format( key)) if type(feed[key]).__module__ == np.__name__ and np.size(feed[ key]) != self.feed_tensor_len[key]: @@ -304,7 +304,7 @@ class Client(object): int_feed_names, int_shape, fetch_names, result_batch_handle, self.pid) else: - raise SystemExit( + raise ValueError( "Please make sure the inputs are all in list type or all in numpy.array type" )