Skip to content

Commit

Permalink
Do not raise, in api-bench, when hitting an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Apr 30, 2024
1 parent 9101ec6 commit 0611564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/api_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def get_metrics(self, user, path: str, res: Response) -> dict:
exception=res.reason_phrase,
)
)
raise Exception(self.exceptions)
return {}
# raise Exception(self.exceptions)

return dict(time=time_response, size=byte_size)

Expand Down

0 comments on commit 0611564

Please sign in to comment.