Try-except for flow control in reading Sqlite

Chris Angelico rosuav at gmail.com
Mon Oct 28 03:01:49 EDT 2013


On Mon, Oct 28, 2013 at 5:57 PM, Victor Hooi <victorhooi at gmail.com> wrote:
> Hi,
>
> We're on Python 2.6 (RHEL based system...) - I don't believe this exposes FileNotFoundError =(.

Ah! I forgot about 2.x, sorry for the nose. Yep, catching OSError
would be the thing to do, then!

ChrisA



More information about the Python-list mailing list