Skip to content

Commit 633d0c1

Browse files
committed
Remove _throw_client_bulk_write_exception case
1 parent 428a888 commit 633d0c1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pymongo/_client_bulk_shared.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"""Constants, types, and classes shared across Client Bulk Write API implementations."""
1717
from __future__ import annotations
1818

19-
import asyncio
2019
from typing import TYPE_CHECKING, Any, Mapping, MutableMapping, NoReturn
2120

2221
from pymongo.errors import ClientBulkWriteException, OperationFailure
@@ -76,7 +75,5 @@ def _throw_client_bulk_write_exception(
7675
)
7776
raise OperationFailure(errmsg, code, full_result)
7877
if isinstance(full_result["error"], BaseException):
79-
if isinstance(full_result["error"], asyncio.CancelledError):
80-
raise
8178
raise ClientBulkWriteException(full_result, verbose_results) from full_result["error"]
8279
raise ClientBulkWriteException(full_result, verbose_results)

0 commit comments

Comments
 (0)