File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def __init__(
7777 self ,
7878 api_key : Optional [str ] = None ,
7979 api_endpoint : Optional [str ] = None ,
80- verify : Union [bool , str ] = True ,
80+ verify : Optional [ Union [bool , str ]] = None ,
8181 client_name : GraphQLClientName = GraphQLClientName .SDK ,
8282 graphql_client_params : Optional [Dict [str , object ]] = None ,
8383 ) -> None :
@@ -135,12 +135,17 @@ def __init__(
135135 if not api_key :
136136 raise AuthenticationFailed (api_key , api_endpoint )
137137
138+ if verify is None :
139+ verify = os .getenv (
140+ "KILI_VERIFY" ,
141+ "True" ,
142+ ).lower () in ("true" , "1" , "yes" )
143+
138144 self .api_key = api_key
139145 self .api_endpoint = api_endpoint
140146 self .verify = verify
141147 self .client_name = client_name
142148 self .http_client = HttpClient (kili_endpoint = api_endpoint , verify = verify , api_key = api_key )
143-
144149 skip_checks = os .getenv ("KILI_SDK_SKIP_CHECKS" ) is not None
145150 if not skip_checks and not is_api_key_valid (
146151 self .http_client , api_key , api_endpoint , client_name
You can’t perform that action at this time.
0 commit comments