Revision 314
Added by Aaron Marcuse-Kubitza almost 13 years ago
map | ||
---|---|---|
84 | 84 |
'''Processes input values |
85 | 85 |
@param get_value f(in_, row):str |
86 | 86 |
''' |
87 |
try:
|
|
88 |
for i, row in enumerate(rows):
|
|
87 |
for i, row in enumerate(rows):
|
|
88 |
try:
|
|
89 | 89 |
if not (limit == None or i < limit): break |
90 | 90 |
row_id = str(i) |
91 | 91 |
for in_, out in mappings: |
... | ... | |
93 | 93 |
if value == None: value = get_value(in_, row) |
94 | 94 |
if value != None: |
95 | 95 |
xpath.put_obj(root, out, row_id, has_types, value) |
96 |
except Exception: traceback.print_exc() |
|
96 |
except Exception: traceback.print_exc()
|
|
97 | 97 |
|
98 | 98 |
if map_path == None: |
99 | 99 |
iter_ = xml_dom.NodeElemIter(doc0.documentElement) |
Also available in: Unified diff
bin/map: Moved process_rows() exception handling around entire row, rather than each value, so that a broken value will not be ignored only to cause errors when outputing the row