From: Michael Trier Date: Wed, 8 Oct 2008 16:05:46 +0000 (+0000) Subject: Corrected docstring for Query.one. Fixes #1190. X-Git-Tag: rel_0_5rc2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0742ada97e1501e32329fa677bc80ac5b7ff4b8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Corrected docstring for Query.one. Fixes #1190. --- diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 4b6aa0018b..12a69855d1 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -1025,8 +1025,8 @@ class Query(object): def one(self): """Return exactly one result or raise an exception. - Raises ``sqlalchemy.orm.NoResultError`` if the query selects no rows. - Raisees ``sqlalchemy.orm.MultipleResultsError`` if multiple rows are + Raises ``sqlalchemy.orm.exc.NoResultFound`` if the query selects no rows. + Raises ``sqlalchemy.orm.exc.MultipleResultsFound`` if multiple rows are selected. This results in an execution of the underlying query.