Skip to content

Commit

Permalink
Allow URL paths on CGW_URL (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Jul 22, 2024
1 parent 6092835 commit 5341f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/safe_client_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def cgw_setup() -> tuple[str, str]:
def hook_event(event: HookEvent) -> None:
try:
(url, token) = cgw_setup()
url = urljoin(url, "/v1/hooks/events")
url = urljoin(url.rstrip("/") + "/", "v1/hooks/events")
post(url, token, json={"type": event.type, "chainId": str(event.chain_id)})
except Exception as error:
logger.error(error)
Expand Down

0 comments on commit 5341f94

Please sign in to comment.