Commits

Reimar Bauer committed 187a36c

sqlalchemy.exceptions was removed in 0.7 of sqlalchemy. Since at least 0.6 the import for the core exception module is "from sqlalchemy import exc".

Comments (0)

Files changed (2)

MoinMoin/storage/backends/fs19.py

 UUID_LEN = len(make_uuid())
 
 from sqlalchemy import create_engine, MetaData, Table, Column, String, Unicode, Integer
-from sqlalchemy.exceptions import IntegrityError
+from sqlalchemy.exc import IntegrityError
 
 from MoinMoin import log
 logging = log.getLogger(__name__)

MoinMoin/storage/backends/fs2.py

 from flask import current_app as app
 
 from sqlalchemy import create_engine, MetaData, Table, Column, String, Unicode, Integer
-from sqlalchemy.exceptions import IntegrityError
+from sqlalchemy.exc import IntegrityError
 from sqlalchemy.pool import NullPool
 
 from werkzeug import cached_property