Skip to content

Commit 22c078f

Browse files
committed
SDK-826: Change how variable is imported
1 parent bd1f5a2 commit 22c078f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

yoti_python_sdk/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
X_YOTI_SDK_VERSION,
2424
JSON_CONTENT_TYPE,
2525
)
26-
from . import YOTI_API_VERIFY_SSL
2726

2827
NO_KEY_FILE_SPECIFIED_ERROR = (
2928
"Please specify the correct private key file "
@@ -104,7 +103,7 @@ def make_request(self, http_method, endpoint, body):
104103

105104
url = yoti_python_sdk.YOTI_API_ENDPOINT + endpoint
106105
headers = self.__get_request_headers(endpoint, http_method, body)
107-
response = requests.request(http_method, url, headers=headers, data=body, verify=YOTI_API_VERIFY_SSL)
106+
response = requests.request(http_method, url, headers=headers, data=body, verify=yoti_python_sdk.YOTI_API_VERIFY_SSL)
108107
return response
109108

110109
@property
@@ -136,7 +135,7 @@ def __make_activity_details_request(
136135
path = self.__endpoint.get_activity_details_request_path(decrypted_token)
137136
url = yoti_python_sdk.YOTI_API_ENDPOINT + path
138137
headers = self.__get_request_headers(path, http_method, content)
139-
response = requests.get(url=url, headers=headers, verify=YOTI_API_VERIFY_SSL)
138+
response = requests.get(url=url, headers=headers, verify=yoti_python_sdk.YOTI_API_VERIFY_SSL)
140139

141140
self.http_error_handler(
142141
response, {"default": "Unsuccessful Yoti API call: {1}"}
@@ -151,7 +150,7 @@ def __make_aml_check_request(self, http_method, aml_profile):
151150
url = yoti_python_sdk.YOTI_API_ENDPOINT + path
152151
headers = self.__get_request_headers(path, http_method, aml_profile_bytes)
153152

154-
response = requests.post(url=url, headers=headers, data=aml_profile_bytes, verify=YOTI_API_VERIFY_SSL)
153+
response = requests.post(url=url, headers=headers, data=aml_profile_bytes, verify=yoti_python_sdk.YOTI_API_VERIFY_SSL)
155154

156155
self.http_error_handler(
157156
response, {"default": "Unsuccessful Yoti API call: {1}"}

0 commit comments

Comments
 (0)