File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def __init__(self, **data):
169169 super ().__init__ (** data )
170170 self ._request_params = (
171171 {"headers" : {"authorization" : f"Bearer { self .api_key } " }}
172- if self .api_key
172+ if self .api_key and self . api_key . strip ()
173173 else {"headers" : {}}
174174 )
175175 # Configure httpx client with the provided retry settings
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def get_client(
108108
109109async def get_client_async (
110110 impersonate_user_id : str , set_pkg_headers : Optional [bool ] = False
111- ):
111+ ) -> AsyncAtlanClient :
112112 """
113113 Set up the default async Atlan client, based on environment variables.
114114 This will use an API token if found in ATLAN_API_KEY, and will fallback to attempting to impersonate a user if
You can’t perform that action at this time.
0 commit comments