Skip to content

Conversation

NoahStapp
Copy link
Contributor

No description provided.

@NoahStapp NoahStapp requested a review from ShaneHarvey February 5, 2025 15:02
@NoahStapp
Copy link
Contributor Author

Some of these could be added back in with https://jira.mongodb.org/browse/PYTHON-4745 depending on what we decide on.

)
raise OperationFailure(errmsg, code, full_result)
if isinstance(full_result["error"], BaseException):
if isinstance(full_result["error"], asyncio.CancelledError):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually needed? Like do we catch BaseException where _throw_client_bulk_write_exception is called? Or is this added just to be safe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. We don't catch BaseException when _throw_client_bulk_write_exception is called, so this can be removed.

ShaneHarvey
ShaneHarvey previously approved these changes Feb 10, 2025
Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the test failures expected?

@NoahStapp
Copy link
Contributor Author

Are the test failures expected?

No, looking into now.

@NoahStapp NoahStapp merged commit 8496d58 into mongodb:master Feb 12, 2025
46 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants