File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ def if_exception_type_predicate(exception):
104
104
exceptions .TooManyRequests ,
105
105
exceptions .ServiceUnavailable ,
106
106
requests .exceptions .ConnectionError ,
107
+ requests .exceptions .ChunkedEncodingError ,
107
108
auth_exceptions .TransportError ,
108
109
)
109
110
"""A predicate that checks if an exception is a transient API error.
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ def test_if_transient_error():
45
45
assert retry .if_transient_error (exceptions .TooManyRequests ("" ))
46
46
assert retry .if_transient_error (exceptions .ServiceUnavailable ("" ))
47
47
assert retry .if_transient_error (requests .exceptions .ConnectionError ("" ))
48
+ assert retry .if_transient_error (requests .exceptions .ChunkedEncodingError ("" ))
48
49
assert retry .if_transient_error (auth_exceptions .TransportError ("" ))
49
50
assert not retry .if_transient_error (exceptions .InvalidArgument ("" ))
50
51
You can’t perform that action at this time.
0 commit comments