Revision 759
Added by Aaron Marcuse-Kubitza almost 13 years ago
bin/map | ||
---|---|---|
212 | 212 |
out_db.rollback() |
213 | 213 |
out_db.close() |
214 | 214 |
else: |
215 |
def on_error(e): ex_tracker.track(e) |
|
215 | 216 |
def process_row(input_row): pass |
216 | 217 |
process_inputs(root, process_row) |
217 |
xml_func.process(root) |
|
218 |
xml_func.process(root, on_error)
|
|
218 | 219 |
if out_is_xml_ref[0]: |
219 | 220 |
doc.writexml(sys.stdout, **xml_dom.prettyxml_config) |
220 | 221 |
else: # output is CSV |
Also available in: Unified diff
bin/map: In the xml_func.process() for XML outputs, pass an on_error that outputs to ex_tracker.track()