Project

General

Profile

« Previous | Next » 

Revision 2808

sql.py: put_table(): No handler for exception: Pass exception to on_error() instead of raising a warning, so that error message can be formatted

View differences:

lib/sql.py
1291 1291
        except DatabaseErrors, e:
1292 1292
            log_exc(e)
1293 1293
            
1294
            msg = 'No handler for exception: '+exc.str_(e)
1295
            warnings.warn(DbWarning(msg))
1296
            log_debug(msg)
1294
            log_debug('No handler for exception')
1295
            on_error(e)
1297 1296
            remove_all_rows()
1298 1297
        # after exception handled, rerun loop with additional constraints
1299 1298
    

Also available in: Unified diff