Skip to content

Commit

Permalink
Leave Exception case out of add_http_mock_response
Browse files Browse the repository at this point in the history
I'll bring it back after testing it (but probably not in this PR).
  • Loading branch information
ndokos committed Apr 10, 2023
1 parent 0eebee3 commit 9e4f80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pbench/test/unit/agent/task/test_results_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def add_http_mock_response(

if isinstance(message, dict):
parms["json"] = message
elif isinstance(message, (str, Exception)):
elif isinstance(message, str):
parms["body"] = message

responses.add(
Expand Down

0 comments on commit 9e4f80b

Please sign in to comment.