From b9dcf43cf4d67344ab5ea2b8fea750ac25cb7ceb Mon Sep 17 00:00:00 2001 From: Don Brown Date: Tue, 18 Feb 2014 00:10:29 -0700 Subject: [PATCH] Fix mongo authentication, version 0.2.1 --- asyncio_mongo/database.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/asyncio_mongo/database.py b/asyncio_mongo/database.py index 8989c32..653c43e 100644 --- a/asyncio_mongo/database.py +++ b/asyncio_mongo/database.py @@ -94,8 +94,8 @@ class Database(object): raise TypeError("password must be an instance of str") # First get the nonce - result = yield self["$cmd"].find_one({"getnonce": 1}) - return (yield self.authenticate_with_nonce(result, name, password)) + result = yield from self["$cmd"].find_one({"getnonce": 1}) + return (yield from self.authenticate_with_nonce(result, name, password)) @coroutine def authenticate_with_nonce(self, result, name, password): diff --git a/setup.py b/setup.py index 72829f0..ebe647a 100755 --- a/setup.py +++ b/setup.py @@ -93,7 +93,7 @@ else: setup( name="asyncio_mongo", - version="0.2", + version="0.2.1", description="Asynchronous Python 3.3+ driver for MongoDB ", author="Alexandre Fiori, Don Brown", author_email="mrdon@twdata.org",