diff --git a/moto/dynamodb2/responses.py b/moto/dynamodb2/responses.py index c6dd094ae..46cfaa239 100644 --- a/moto/dynamodb2/responses.py +++ b/moto/dynamodb2/responses.py @@ -481,7 +481,9 @@ class DynamoHandler(BaseResponse): ] elif "begins_with" in range_key_expression: range_comparison = "BEGINS_WITH" - range_values = [value_alias_map[range_key_expression_components[-1]]] + range_values = [ + value_alias_map[range_key_expression_components[-1]] + ] else: range_values = [value_alias_map[range_key_expression_components[2]]] else: