Skip to content

Commit

Permalink
fix(agent): Don't log web request failures
Browse files Browse the repository at this point in the history
This does 2 things:
- Don't create error log when requests without jobs fail
- Don't create agent request failure doc when requests without jobs fail
  • Loading branch information
balamurali27 committed Jan 3, 2025
1 parent 7648104 commit 542e3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion press/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@ def request(self, method, path, data=None, files=None, agent_job=None, raises=Tr
doc=agent_job,
)
except Exception as exc:
self.log_request_failure(exc)
self.handle_exception(agent_job, exc)
self.log_request_failure(exc)
log_error(
title="Agent Request Exception",
method=method,
Expand Down

0 comments on commit 542e3fb

Please sign in to comment.