diff --git a/postgres/__init__.py b/postgres/__init__.py index 7ff844d..d16bd7c 100644 --- a/postgres/__init__.py +++ b/postgres/__init__.py @@ -384,11 +384,11 @@ def one(self, sql, parameters=None, default=None, back_as=None, *a, **kw): :type back_as: type or string :param a: passed through to :py:meth:`~postgres.Postgres.get_cursor` :param kw: passed through to :py:meth:`~postgres.Postgres.get_cursor` - :returns: a single record or value or the value of the - :py:attr:`default` argument - :raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany` + :returns: a single record or value, or :py:attr:`default` (if + :py:attr:`default` is not an :py:class:`Exception`) + :raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`, or :py:attr:`default` (if :py:attr:`default` is an - :py:class:`Exception` subclass or instance) + :py:class:`Exception`) .. _bind parameters: #bind-parameters