childsplay/childsplay-1.6-python-SQLAlchemy-0.7.patch

20 lines
778 B
Diff
Raw Normal View History

--- a/SPDataManager.py
+++ b/SPDataManager.py
@@ -38,7 +38,6 @@
try:
import sqlalchemy as sqla
- import sqlalchemy.exceptions as sqlae
import SQLTables
except ImportError:
module_logger.exception("No sqlalchemy package found")
@@ -82,7 +81,7 @@
sqltb = SQLTables.SqlTables(self.metadata)
# returns lookup table to get table objects by name and creates tables
self.tables = sqltb._create_tables(self.metadata, self.engine)
- except (AttributeError, sqlae.SQLAlchemyError), info:
+ except (AttributeError, sqla.exceptions.SQLAlchemyError), info:
self.logger.exception("Failed to start the DBase, %s" % info)
raise MyError, info
else: