Skip to content

Commit

Permalink
return None by default
Browse files Browse the repository at this point in the history
  • Loading branch information
novaturient95 committed Sep 18, 2024
1 parent afe2d9b commit 9267c87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def format_output(self, results: "list[ScoringResult]", batch_size_per_request:

def __get_request_id(self, scoring_request: ScoringResult):
return (
scoring_request.response_headers.get("x-request-id", "")
scoring_request.response_headers.get("x-request-id", None)
if scoring_request.response_headers is not None
else ""
else None
)

def _get_response_obj(self, result: dict):
Expand Down

0 comments on commit 9267c87

Please sign in to comment.