server/sqlutils.py
branchstable
changeset 4195 86dcaf6bb92f
parent 4179 3a0b2f14e17b
child 4204 60256056bda6
child 4212 ab6573088b4a
--- a/server/sqlutils.py	Tue Dec 22 20:06:24 2009 +0100
+++ b/server/sqlutils.py	Tue Dec 22 21:02:37 2009 +0100
@@ -183,7 +183,9 @@
                                                   keepownership=False,
                                                   drop=drop):
             if os.system(cmd):
-                raise Exception('Failed command: %s' % cmd)
+                print '-> Failed command: %s' % cmd
+                if not confirm('Continue anyway?', default='n'):
+                    raise Exception('Failed command: %s' % cmd)
 
     def merge_args(self, args, query_args):
         if args is not None: