@@ -124,7 +124,6 @@ def track(self, user_id, action, payload=None, path=None):
124
124
headers = headers ,
125
125
timeout = timeout ,
126
126
params = params )
127
- response .raise_for_status ()
128
127
129
128
return response .json ()
130
129
@@ -151,7 +150,6 @@ def get_action(self, user_id, action, idempotency_key, path=None):
151
150
headers = headers ,
152
151
timeout = timeout ,
153
152
params = params )
154
- response .raise_for_status ()
155
153
156
154
return response .json ()
157
155
@@ -180,8 +178,7 @@ def get_user(self, user_id, redirect_url=None, path=None):
180
178
headers = headers ,
181
179
timeout = timeout ,
182
180
params = params )
183
- response .raise_for_status ()
184
-
181
+
185
182
return response .json ()
186
183
187
184
def delete_user (self , user_id ):
@@ -196,7 +193,7 @@ def delete_user(self, user_id):
196
193
headers = headers ,
197
194
timeout = self .timeout
198
195
)
199
- response . raise_for_status ()
196
+
200
197
return response .json ()
201
198
202
199
def delete_authenticator (self , user_id : str , user_authenticator_id : str ) -> Dict [str , Any ]:
@@ -214,7 +211,7 @@ def delete_authenticator(self, user_id: str, user_authenticator_id: str) -> Dict
214
211
headers = headers ,
215
212
timeout = self .timeout
216
213
)
217
- response . raise_for_status ()
214
+
218
215
return response .json ()
219
216
220
217
def update_user (self , user_id , data ):
@@ -230,8 +227,6 @@ def update_user(self, user_id, data):
230
227
auth = requests .auth .HTTPBasicAuth (self .api_key , '' )
231
228
)
232
229
233
- response .raise_for_status ()
234
-
235
230
return response .json ()
236
231
237
232
def enroll_verified_authenticator (self , user_id , authenticator_payload , path = None ):
@@ -257,7 +252,7 @@ def enroll_verified_authenticator(self, user_id, authenticator_payload, path=No
257
252
headers = headers ,
258
253
timeout = timeout ,
259
254
params = params )
260
- response . raise_for_status ()
255
+
261
256
return response .json ()
262
257
263
258
def validate_challenge (self , token : str , user_id : Optional [str ] = None , action : Optional [str ] = None ) -> Dict [str , Any ]:
@@ -275,9 +270,7 @@ def validate_challenge(self, token: str, user_id: Optional[str] = None, action:
275
270
timeout = self .timeout
276
271
)
277
272
278
- response_data = response .json ()
279
-
280
- return response_data
273
+ return response .json ()
281
274
282
275
def _default_headers (self ):
283
276
return {'Content-type' : 'application/json' ,
0 commit comments