For the following code I am getting the below error:
config = {
'bucket': json.loads(record['body'])
['Records'][0]['s3']['bucket']['name'],
'key': json.loads(record['body'])
['Records'][0]['s3']['object']['key']
}
E131 continuation line unaligned for hanging indent
['Records'][0]['s3']['bucket']['name'],
E131 continuation line unaligned for hanging indent
['Records'][0]['s3']['object']['key']
I have tried a few options including the below - but it is not working:
config = {
'bucket': json.loads(
record['body']
)
['Records'][0]['s3']['bucket']['name'],
'key': json.loads(record['body'])
['Records'][0]['s3']['object']['key']
}
I have also tried + \
at the end of the line but does not work also