Add boto3 availability util method

This commit is contained in:
Yegor 2023-02-15 12:15:24 +01:00
parent 874a879768
commit 60bf56b715
No known key found for this signature in database
GPG Key ID: 25A634504C9CCE9E
1 changed files with 9 additions and 0 deletions

View File

@ -8,3 +8,12 @@ def is_botocore_available():
return True
except ImportError:
return False
def is_boto3_available():
try:
import boto3 # noqa: F401
return True
except ImportError:
return False