diff options
| author | Michael Trier <mtrier@gmail.com> | 2008-10-08 16:05:46 +0000 |
|---|---|---|
| committer | Michael Trier <mtrier@gmail.com> | 2008-10-08 16:05:46 +0000 |
| commit | e0742ada97e1501e32329fa677bc80ac5b7ff4b8 (patch) | |
| tree | 4e0013bc211caaed7b721b25bc98f342567597a0 /lib/sqlalchemy | |
| parent | ff3df488f5d84a1fa6288adaaa48948fe1614e7d (diff) | |
| download | sqlalchemy-e0742ada97e1501e32329fa677bc80ac5b7ff4b8.tar.gz | |
Corrected docstring for Query.one. Fixes #1190.
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 4b6aa0018..12a69855d 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. |
