Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
I understand it now. Thanks for the responses. -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Tim Harig
On 2010-11-13, Ravi wrote: > import sqlite3 > con = sqlite3.connect("any string here") That is a property of the sqlite database itself. It always opens the database requested; even if it has to create a new database to do so. > and there is no error reported. You will get an error you do some

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread MRAB
On 13/11/2010 16:54, Ravi wrote: try this: import sqlite3 con = sqlite3.connect("any string here") and there is no error reported. You will get an error you do some operations on the database which is confusing. I think sqlite3 should change this behavior. That will open an existing database