Project

General

Profile

« Previous | Next » 

Revision 883

bin/map: Print error if map root not found inXML input

View differences:

map
167 167
                if node != None: return xml_dom.value(node)
168 168
                else: return None
169 169
            row0 = xpath.get(doc0.documentElement, in_root)
170
            if row0 == None: raise SystemExit('Map error: Root "'+in_root
171
                +'" not found in input')
170 172
            map_rows(get_value, xml_dom.NodeElemIter(row0.parentNode))
171 173
        else: # input is CSV
172 174
            map_ = dict(mappings)

Also available in: Unified diff