We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb936e9 commit c3a9d1eCopy full SHA for c3a9d1e
laceworksdk/http_session.py
@@ -151,6 +151,8 @@ def _get_access_token(self):
151
"expiryTime": DEFAULT_ACCESS_TOKEN_EXPIRATION
152
}
153
154
+ response = None
155
+
156
try:
157
response = self._session.post(uri, json=data, headers=headers)
158
@@ -160,7 +162,11 @@ def _get_access_token(self):
160
162
self._print_debug_response(response)
161
163
164
except Exception:
- raise ApiError(response)
165
+ if response:
166
+ raise ApiError(response)
167
168
+ logger.error("Call to _get_access_token() returned no response.")
169
+ raise
170
171
return response
172
0 commit comments