changeset 235:187a36c04c59

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".
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 22 May 2011 23:40:43 +0200
parents f6e023768f35
children 7a77ae08161e
files MoinMoin/storage/backends/fs19.py MoinMoin/storage/backends/fs2.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/fs19.py	Sun May 15 18:06:46 2011 +0200
+++ b/MoinMoin/storage/backends/fs19.py	Sun May 22 23:40:43 2011 +0200
@@ -26,7 +26,7 @@
 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__)
--- a/MoinMoin/storage/backends/fs2.py	Sun May 15 18:06:46 2011 +0200
+++ b/MoinMoin/storage/backends/fs2.py	Sun May 22 23:40:43 2011 +0200
@@ -21,7 +21,7 @@
 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