Skip to content

Commit 8c1f9d2

Browse files
improve: handle all exceptions in fetcher
1 parent 54c092c commit 8c1f9d2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

fast_s3/fetcher.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
from pathlib import Path
33
from typing import List, Union
44

5-
from botocore.exceptions import ClientError
6-
from s3transfer.exceptions import RetriesExceededError
7-
85
from .file import File, Status
96
from .transfer_manager import transfer_manager
107

@@ -63,7 +60,7 @@ def process_index(self, index):
6360
try:
6461
file.future.result()
6562
return file.with_status(Status.done)
66-
except (ClientError, RetriesExceededError) as e:
63+
except Exception as e:
6764
return file.with_status(Status.error, exception=e)
6865

6966
def queue_download_(self):

0 commit comments

Comments
 (0)