Revision 462
Added by Aaron Marcuse-Kubitza almost 13 years ago
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
bin/map: Use db_xml.put()'s new on_error handler