Project

General

Profile

« Previous | Next » 

Revision 3577

bin/map: in_is_xml: doc2rows(): "Root not found in input" error: Changed SystemExit to a warning because this is a normal circumstance in the base case where the input XML file contains no rows

View differences:

map
8 8
import csv
9 9
import itertools
10 10
import os.path
11
import warnings
11 12
import sys
12 13
import xml.dom.minidom as minidom
13 14

  
......
374 375
            else:
375 376
                def doc2rows(in_xml_root):
376 377
                    rows = xpath.get(in_xml_root, in_root, limit=end)
377
                    if rows == []: raise SystemExit('Map error: Root "'
378
                        +in_root+'" not found in input')
378
                    if rows == []: warnings.warn(UserWarning('Map error: Root "'
379
                        +in_root+'" not found in input'))
379 380
                    return rows
380 381
                
381 382
                def get_value(in_, row):

Also available in: Unified diff