]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected docstring for Query.one. Fixes #1190.
authorMichael Trier <mtrier@gmail.com>
Wed, 8 Oct 2008 16:05:46 +0000 (16:05 +0000)
committerMichael Trier <mtrier@gmail.com>
Wed, 8 Oct 2008 16:05:46 +0000 (16:05 +0000)
lib/sqlalchemy/orm/query.py

index 4b6aa0018be3a29727e01292fbfcd47fde27996a..12a69855d122b4aa281cbfefd5e9cd00736c50bb 100644 (file)
@@ -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.