Skip to content

Commit fcbc407

Browse files
Fix boto3 missing error message in obj extension (#544)
1 parent 5878f97 commit fcbc407

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

linodecli/plugins/obj/objects.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
from pathlib import Path
88
from typing import List
99

10-
from boto3.exceptions import S3UploadFailedError
11-
from boto3.s3.transfer import MB, TransferConfig
10+
try:
11+
from boto3.exceptions import S3UploadFailedError
12+
from boto3.s3.transfer import MB, TransferConfig
13+
except:
14+
# this has been handled in `call` function
15+
# by print an error message
16+
pass
1217

1318
from linodecli.helpers import expand_globs
1419
from linodecli.plugins import inherit_plugin_args

0 commit comments

Comments
 (0)