mirror of https://github.com/scrapy/scrapy.git
Add boto3 availability util method
This commit is contained in:
parent
874a879768
commit
60bf56b715
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue