Skip to content

Commit

Permalink
refactor SeldonIO#2
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush committed Oct 12, 2021
1 parent 77bcd5e commit 7e08766
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtimes/alibi-explain/mlserver_alibi_explain/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def convert_from_bytes(output: ResponseOutput, ty: Optional[Type]) -> Any:
def remote_predict(v2_payload: InferenceRequest, predictor_url: str) -> InferenceResponse:
response_raw = requests.post(predictor_url, json=v2_payload.dict())
if response_raw.status_code != 200:
# TODO: add proper error handling
raise ValueError(f"{response_raw.status_code} / {response_raw.reason}")
return InferenceResponse.parse_raw(response_raw.text)

Expand Down

0 comments on commit 7e08766

Please sign in to comment.