File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,17 @@ def get_boto_client(
3939 logging .error ("Failed to get {0} client." .format (client ))
4040 return None
4141
42+ # do not explicitly set any params as None
43+ config_params = dict (
44+ max_pool_connections = max_pool_connections ,
45+ connect_timeout = connect_timeout ,
46+ read_timeout = read_timeout ,
47+ )
48+ config_params = {k : v for (k , v ) in config_params .items () if v is not None }
4249 CLIENT_CACHE [cache_key ] = session .client (
4350 client ,
4451 endpoint_url = endpoint_url ,
45- config = botocore .config .Config (
46- max_pool_connections = max_pool_connections ,
47- connect_timeout = connect_timeout ,
48- read_timeout = read_timeout ,
49- )
52+ config = botocore .config .Config (** config_params )
5053 )
5154 return CLIENT_CACHE [cache_key ]
5255
Original file line number Diff line number Diff line change 1313
1414from setuptools import setup , find_packages
1515
16- VERSION = "0.6.2 "
16+ VERSION = "0.6.3 "
1717
1818requirements = [
1919 # Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK)
You can’t perform that action at this time.
0 commit comments