We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb19f0 commit cea3d44Copy full SHA for cea3d44
1 file changed
src/marshmallow/schema.py
@@ -620,8 +620,7 @@ def _deserialize(
620
:return: The deserialized data as `dict_class` instance or list of `dict_class`
621
instances if `many` is `True`.
622
"""
623
- index_errors = self.opts.index_errors
624
- index = index if index_errors else None
+ index = index if self.opts.index_errors else None
625
if many:
626
if not is_sequence_but_not_string(data):
627
error_store.store_error([self.error_messages["type"]], index=index)
@@ -701,7 +700,7 @@ def getter(
701
700
error_store.store_error(
702
[self.error_messages["unknown"]],
703
key,
704
- (index if index_errors else None),
+ index,
705
)
706
return ret_d
707
0 commit comments