SQLite3 trapping OperationalError

jim-on-linux inq1ltd at verizon.net
Fri Mar 9 19:45:40 CET 2007


On Friday 09 March 2007 13:10, Jerry Hill wrote:
> 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

Thanks,
 except sqlite3.OperationalError:
works for me.

jim-on-linux



More information about the Python-list mailing list