Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit e909fe3

Browse files
authored
Merge pull request #66 from lmignon/fix-load-nested-many
Fix: pop 'many' from kwargs with default to avoid error if this keywo…
2 parents 2d7bfaf + 752c0b2 commit e909fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marshmallow_objects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __new__(mcs, name, parents, dct):
7171

7272
def __call__(cls, *args, **kwargs):
7373
if kwargs.pop('__post_load__', False):
74-
kwargs.pop("many")
74+
kwargs.pop("many", None)
7575
schema = kwargs.pop('__schema__')
7676
obj = cls.__new__(cls, *args, **kwargs)
7777
obj.__dump_lock__ = threading.RLock()

0 commit comments

Comments
 (0)