|
11 | 11 | from ..core.request_options import RequestOptions |
12 | 12 | from ..core.serialization import convert_and_respect_annotation_metadata |
13 | 13 | from ..errors.bad_request_error import BadRequestError |
14 | | -from ..errors.conflict_error import ConflictError |
15 | 14 | from ..errors.not_found_error import NotFoundError |
16 | 15 | from ..errors.too_many_requests_error import TooManyRequestsError |
17 | 16 | from ..errors.unauthorized_error import UnauthorizedError |
@@ -292,17 +291,6 @@ def create_transaction_events( |
292 | 291 | ), |
293 | 292 | ), |
294 | 293 | ) |
295 | | - if _response.status_code == 409: |
296 | | - raise ConflictError( |
297 | | - headers=dict(_response.headers), |
298 | | - body=typing.cast( |
299 | | - ApiErrorResponse, |
300 | | - parse_obj_as( |
301 | | - type_=ApiErrorResponse, # type: ignore |
302 | | - object_=_response.json(), |
303 | | - ), |
304 | | - ), |
305 | | - ) |
306 | 294 | if _response.status_code == 429: |
307 | 295 | raise TooManyRequestsError( |
308 | 296 | headers=dict(_response.headers), |
@@ -1388,17 +1376,6 @@ async def create_transaction_events( |
1388 | 1376 | ), |
1389 | 1377 | ), |
1390 | 1378 | ) |
1391 | | - if _response.status_code == 409: |
1392 | | - raise ConflictError( |
1393 | | - headers=dict(_response.headers), |
1394 | | - body=typing.cast( |
1395 | | - ApiErrorResponse, |
1396 | | - parse_obj_as( |
1397 | | - type_=ApiErrorResponse, # type: ignore |
1398 | | - object_=_response.json(), |
1399 | | - ), |
1400 | | - ), |
1401 | | - ) |
1402 | 1379 | if _response.status_code == 429: |
1403 | 1380 | raise TooManyRequestsError( |
1404 | 1381 | headers=dict(_response.headers), |
|
0 commit comments