diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index 08464034..b31e067c 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -449,9 +449,8 @@ class EventSourceMapping(BaseModel): # Use service default if not provided batch_size = int(spec.get('BatchSize', batch_size_entry[0])) if batch_size > batch_size_entry[1]: - raise ValueError( - "InvalidParameterValueException", - "BatchSize {} exceeds the max of {}".format(batch_size, batch_size_entry[1])) + raise ValueError("InvalidParameterValueException", + "BatchSize {} exceeds the max of {}".format(batch_size, batch_size_entry[1])) else: self.batch_size = batch_size