Project

General

Profile

« Previous | Next » 

Revision 462

bin/map: Use db_xml.put()'s new on_error handler

View differences:

bin/map
176 176
                    assert xml_dom.has_one_child(root)
177 177
                    try:
178 178
                        sql.with_savepoint(out_db, lambda: db_xml.put(out_db,
179
                            root.firstChild, out_pkeys, row_ct_ref))
179
                            root.firstChild, out_pkeys, row_ct_ref, on_error))
180 180
                        if commit: out_db.commit()
181 181
                    except sql.DatabaseErrors, e: on_error(e)
182 182
                root.clear()

Also available in: Unified diff