diff --git a/moto/dynamodb2/models.py b/moto/dynamodb2/models.py index b538deb88..99c965612 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -220,7 +220,7 @@ class Table(object): else: current_attr = current - for key, val in expected.iteritems(): + for key, val in expected.items(): if 'Exists' in val and val['Exists'] == False: if key in current_attr: raise ValueError("The conditional request failed")