Return True if this writeConcernError doc is a caused by a timeout.
(error: Any)
| 277 | |
| 278 | |
| 279 | def _wtimeout_error(error: Any) -> bool: |
| 280 | """Return True if this writeConcernError doc is a caused by a timeout.""" |
| 281 | return error.get("code") == 50 or ("errInfo" in error and error["errInfo"].get("wtimeout")) |
| 282 | |
| 283 | |
| 284 | class BulkWriteError(OperationFailure): |
no test coverage detected