mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-05 23:37:20 -04:00
Corrected docstring for Query.one. Fixes #1190.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user