Skip to content

Commit

Permalink
Merge pull request #1050 from openzim/record_ip_msg
Browse files Browse the repository at this point in the history
Log exception when recording IP changes fails
  • Loading branch information
benoit74 authored Nov 18, 2024
2 parents 040a78d + 6ec8b8a commit 3194ca6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,13 @@ def get(self, session: so.Session, token: AccessToken.Payload):
if constants.USES_WORKERS_IPS_WHITELIST:
try:
record_ip_change(session=session, worker_name=worker_name)
except Exception:
except Exception as exc:
logger.exception(
"Pushing IP changes to Wasabi failed", exc_info=exc
)
raise HTTPBase(
status_code=HTTPStatus.SERVICE_UNAVAILABLE,
error="Recording IP changes failed",
error="Pushing IP changes to Wasabi failed",
)

request_args = WorkerRequestedTaskSchema().load(request_args)
Expand Down

0 comments on commit 3194ca6

Please sign in to comment.