coleifer/peewee — pull request #159 by jasonh-n-austin (2013-02-02 19:31:03+00:00)
Title: Makes script useable with legacy sqlite dbs which have no foreign keys

I had this issue specifically on this db: https://github.com/jasonh-n-austin/WheelsREST/blob/master/wheels.db
This is an export from an older MS Sql Server db, which did not have any foreign keys on tables etc. This error handling for foreign keys made it instantly quit with 'Unable to read table definition for "rides"'.
Handling this quietly doesn't seem to hurt anything, as it generated models for all of the tables, it just didn't apply any treatment for fks.