DynamoDB - with AWS SDK
Identify the error in this retry logic snippet for DynamoDB in Python:
try:
response = client.get_item(TableName='MyTable', Key={'id': {'S': '123'}})
except ClientError as e:
if e.response['Error']['Code'] == 'ThrottlingException':
client.get_item(TableName='MyTable', Key={'id': {'S': '123'}})
else:
raise e