Skip to content

Commit 9a234f8

Browse files
committed
fix timeout retry policy
1 parent aefe30b commit 9a234f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/cosmos/azure-cosmos/azure/cosmos/_timeout_failover_retry_policy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def ShouldRetry(self, _exception):
3030
:rtype: bool
3131
"""
3232
if self.request:
33-
if _OperationType.IsReadOnlyOperation(self.request.operation_type):
33+
if not _OperationType.IsReadOnlyOperation(self.request.operation_type):
3434
return False
3535

3636
if not self.connection_policy.EnableEndpointDiscovery:

0 commit comments

Comments
 (0)