diff --git a/momoko/connection.py b/momoko/connection.py index c8246e4..68e0672 100644 --- a/momoko/connection.py +++ b/momoko/connection.py @@ -312,7 +312,7 @@ def on_reanimate_done(fut): def putconn(self, connection): """ - Retrun busy connection back to the pool. + Return busy connection back to the pool. **NOTE:** This is a synchronous method. @@ -320,7 +320,6 @@ def putconn(self, connection): Connection object previously returned by :py:meth:`momoko.Pool.getconn`. """ - assert connection in self.conns.busy self.conns.release(connection) if self.conns.all_dead: