Skip to content

Commit

Permalink
Merge branch 'feat/support_python3_12' of https://github.com/ydataai/…
Browse files Browse the repository at this point in the history
…ydata-sdk into feat/support_python3_12
  • Loading branch information
fabclmnt committed Sep 6, 2024
2 parents 82ca523 + e22b981 commit 0c75a1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ydata/sdk/common/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def get_static_file(
from urllib.parse import urlparse
url_data = self.__build_url(endpoint, project=project)
url_parse = urlparse(self._base_url)
url_data['url'] = f'{url_parse.scheme}://{url_parse.netloc}/static-content{endpoint}'
url_data['url'] = f'{
url_parse.scheme}://{url_parse.netloc}/static-content{endpoint}'
response = self._http_client.get(**url_data)

if response.status_code != Client.codes.OK and raise_for_status:
Expand Down
3 changes: 2 additions & 1 deletion src/ydata/sdk/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class ClientCreationError(ClientException):
def __init__(self, message=None):
from ydata.sdk.common.client.client import HELP_TEXT
if message is None:
message = f"Could not initialize a client. It usually means that no token could be found or the token needs to be refreshed.\n{HELP_TEXT}"
message = f"Could not initialize a client. It usually means that no token could be found or the token needs to be refreshed.\n{
HELP_TEXT}"

super().__init__(message)

Expand Down

0 comments on commit 0c75a1e

Please sign in to comment.