commonsense team mailing list archive
-
commonsense team
-
Mailing list archive
-
Message #00106
[Bug 377460] Re: sqlite config should warn/fail early if the database does not exist.
The auto-downloader will help with this, but if you've got a
misconfigured db_config.py this will still happen.
** Changed in: conceptnet
Milestone: None => 4.0
** Changed in: conceptnet
Importance: Undecided => Low
** Changed in: conceptnet
Status: New => Confirmed
--
sqlite config should warn/fail early if the database does not exist.
https://bugs.launchpad.net/bugs/377460
You received this bug notification because you are a member of
Commonsense Computing, which is the registrant for ConceptNet.
Status in ConceptNet API: Confirmed
Bug description:
sqlite3 has the behavior that opening a nonexistent database file doesn't fail; it silently creates the db.
This means that people using the sqlite configuration don't find out that something is misconfigured until something tries to access the database and finds that the tables don't exist.
Instead, the sqlite config should check that the database file exists and fail (with an exception that's not ImportError) to import `settings` if it's missing.
References