mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Fixed code block.
This commit is contained in:
parent
289ab1cd8d
commit
491bbb111c
|
@ -291,7 +291,7 @@ The ``cursor`` class
|
|||
|
||||
According to the |DBAPI|_, the exception raised for a cursor out
|
||||
of bound should have been :exc:`!IndexError`. The best option is
|
||||
probably to catch both exceptions in your code:
|
||||
probably to catch both exceptions in your code::
|
||||
|
||||
try:
|
||||
cur.scroll(1000 * 1000)
|
||||
|
|
Loading…
Reference in New Issue
Block a user