diff --git a/anyconfig/backend/bson.py b/anyconfig/backend/bson.py index fa8e9484..4ec87e4c 100644 --- a/anyconfig/backend/bson.py +++ b/anyconfig/backend/bson.py @@ -69,7 +69,7 @@ def load_from_string(self, content, to_container, **kwargs): # .. note:: # The order of loaded configuration keys may be lost but # there is no way to avoid that, AFAIK. - objs = to_container(bson.decode_all(content)) + objs = [to_container(x) for x in bson.decode_all(content)] return objs[0] if objs else None