FormAlchemy / formalchemy

MIT License
81 stars 29 forks source link

Fix sqlalchemy.exceptions ImportError in SQLAlchemy 7.1 or later #7

Closed samuelchen closed 13 years ago

samuelchen commented 13 years ago

SQLAlchemy removed sys.modules['sqlalchemy.exceptions'] = exceptions from version 7. So exceptions will no longer be a module after 7. (It's still available in 6.8 meanwhile)

This fix will work for both SQLAlchemy 7.1 and 6.8.