--- a/server/migractions.py Tue Jan 21 10:20:49 2014 +0100
+++ b/server/migractions.py Tue Jan 21 11:57:02 2014 +0100
@@ -395,11 +395,10 @@
sql_scripts = glob(osp.join(directory, '*.%s.sql' % driver))
for fpath in sql_scripts:
print '-> installing', fpath
- try:
- sqlexec(open(fpath).read(), self.session.system_sql, False,
- delimiter=';;')
- except Exception as exc:
- print '-> ERROR:', exc, ', skipping', fpath
+ failed = sqlexec(open(fpath).read(), self.session.system_sql, False,
+ delimiter=';;')
+ if failed:
+ print '-> ERROR, skipping', fpath
# schema synchronization internals ########################################