SQLite3 trapping OperationalError

Jerry Hill malaclypse2 at gmail.com
Fri Mar 9 13:10:50 EST 2007


On 3/9/07, jim-on-linux <inq1ltd at verizon.net> wrote:
> However python 2.5,
> except OperationalError:
> responds with
> "OperationalError" is not defined.

I believe that needs to be spelled
except sqlite3.OperationalError:
    do_something()

-- 
Jerry



More information about the Python-list mailing list