Another .one -> .find_one
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 12 Mar 2012 23:17:06 +0000 (00:17 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 12 Mar 2012 23:19:53 +0000 (00:19 +0100)
commitcc9f9a1dd3e8f3d0aa642e2a987a9d075e59d3d8
tree63e39612995146162a8f34bac183989d4039dccf
parent84812db59dcc7ba476191678a8bb0e1829f3f607
Another .one -> .find_one

Same idea as in the previous commit.
Joar caught this one.

To reproduce
1. Create a user with an all-decimal ObjectId in mongo
2. Login using that user, while mongodb is enabled.
3. Switch instance to sql.
4. Restart.
5. Refresh any page.

This will error, because no user with that object id exists
any more.

While around, improved logging.
mediagoblin/tools/request.py