server/migractions.py
changeset 9421 6b673cb4d3b6
parent 9375 8e88576787c3
child 9478 2d7521881d3d
child 9588 fe267b7336f3
--- 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 ########################################