Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cradl"
version = "0.4.4"
version = "0.4.5"
description = "Python SDK for Cradl"
authors = [{ name = "Cradl", email = "[email protected]" }]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/cradl/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def dictstrip(d):


def _fatal_code(e: RequestException):
if hasattr(e, 'response') and isinstance(e.response.status_code, int):
if isinstance(e.response, requests.Response) and isinstance(e.response.status_code, int):
return 400 <= e.response.status_code < 500
raise e

Expand Down
2 changes: 1 addition & 1 deletion src/cradl/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def access_token(self) -> str:
return access_token

def _get_client_credentials(self) -> Tuple[str, int]:
if any(endpoint in self.auth_endpoint for endpoint in ['auth.cradl.ai', 'kinde.com']):
if any(endpoint in self.auth_endpoint for endpoint in ['auth.lucidtech.io', 'auth.cradl.ai', 'kinde.com']):
data = {
'client_id': self.client_id,
'client_secret': self.client_secret,
Expand Down
Loading