Skip to content

Commit

Permalink
Add ChunkedEncodingError to retryable error set
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Sep 21, 2024
1 parent 239e39d commit c0e178c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tosfs/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import requests
from requests.exceptions import (
ChunkedEncodingError,
ConnectTimeout,
HTTPError,
ProxyError,
Expand Down Expand Up @@ -68,6 +69,7 @@
InterruptedError,
ConnectionResetError,
ConnectionError,
ChunkedEncodingError,
}

MAX_RETRY_NUM = 20
Expand Down

0 comments on commit c0e178c

Please sign in to comment.