Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
PeiwenGaoMS committed Dec 7, 2023
1 parent a324cf0 commit 991134b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/promptflow/promptflow/batch/_base_executor_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _process_http_response(self, response: httpx.Response):
try:
error_dict = response.json()
return error_dict["error"]
except JSONDecodeError:
except (JSONDecodeError, KeyError):
unexpected_error = UnexpectedError(
message_format=message_format, status_code=response.status_code, error=response.text
)
Expand Down

0 comments on commit 991134b

Please sign in to comment.