Skip to content

Commit 2b5c65a

Browse files
committed
Tweak doc slightly around default=Exception
1 parent f4a7bf3 commit 2b5c65a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgres/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ def one(self, sql, parameters=None, back_as=None, default=None, *a, **kw):
410410
>>> db.one("SELECT * FROM foo WHERE bar='blam'", default=False)
411411
False
412412
413-
If you pass an :py:class:`Exception` instance or subclass, we will
414-
raise that for you:
413+
If you pass an :py:class:`Exception` instance or subclass for
414+
:py:attr:`default`, we will raise that for you:
415415
416416
>>> db.one("SELECT * FROM foo WHERE bar='blam'", default=Exception)
417417
Traceback (most recent call last):

0 commit comments

Comments
 (0)