Skip to content

Commit

Permalink
fix: [bson] bson.decode_all returns []
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed Feb 26, 2017
1 parent 64df212 commit 2fc40fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyconfig/backend/bson.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2fc40fd

Please sign in to comment.