Allow service-invocations without region (S3, e.g.)

This commit is contained in:
Bert Blommers 2020-06-27 20:13:42 +01:00
parent 389939bf8a
commit f963d2ebaa

View File

@ -470,7 +470,7 @@ class ServerModeMockAWS(BaseMockAWS):
def _get_region(self, *args, **kwargs):
if "region_name" in kwargs:
return kwargs["region_name"]
if type(args) == tuple:
if type(args) == tuple and len(args) == 2:
service, region = args
return region
return None