mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-12 17:22:17 +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
|
According to the |DBAPI|_, the exception raised for a cursor out
|
||||||
of bound should have been :exc:`!IndexError`. The best option is
|
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:
|
try:
|
||||||
cur.scroll(1000 * 1000)
|
cur.scroll(1000 * 1000)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user