Skip to content

Commit

Permalink
[Proxy] fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Jan 28, 2025
1 parent ce06986 commit fae93dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions octobot_trading/exchanges/connectors/ccxt/ccxt_client_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ def was_latest_request_proxied(ccxt_connector) -> (bool, str):
last_proxied_request_url = ccxt_connector.exchange_manager.proxy_config.get_last_proxied_request_url()
last_client_request_url = ccxt_connector.client.last_request_url
# if last requests are matching: it was proxied
url_without_param = last_proxied_request_url.split("?")[0]
return last_proxied_request_url == last_client_request_url, url_without_param
if last_proxied_request_url:
url_without_param = last_proxied_request_url.split("?")[0]
return last_proxied_request_url == last_client_request_url, url_without_param
return False, ""


def get_proxy_error_if_any(ccxt_connector, error: Exception) -> typing.Optional[Exception]:
Expand Down

0 comments on commit fae93dd

Please sign in to comment.