Merge pull request #2780 from heyderpd/master
fixing error when _get_default return value that already exists, on _get_appended_list
This commit is contained in:
commit
03164e7b60
2 changed files with 28 additions and 3 deletions
|
|
@ -450,9 +450,9 @@ class Item(BaseModel):
|
|||
old_list_key = list_append_re.group(1)
|
||||
# old_key could be a function itself (if_not_exists)
|
||||
if old_list_key.startswith("if_not_exists"):
|
||||
old_list = DynamoType(
|
||||
expression_attribute_values[self._get_default(old_list_key)]
|
||||
)
|
||||
old_list = self._get_default(old_list_key)
|
||||
if not isinstance(old_list, DynamoType):
|
||||
old_list = DynamoType(expression_attribute_values[old_list])
|
||||
else:
|
||||
old_list = self.attrs[old_list_key.split(".")[0]]
|
||||
if "." in old_list_key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue