Changeset 15a8c94 for doc/user-guide


Ignore:
Timestamp:
2016-12-26T00:18:55Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1999fe5
Parents:
df291a6
git-author:
dequis <dx@…> (24-12-16 16:09:43)
git-committer:
dequis <dx@…> (26-12-16 00:18:55)
Message:

genhelp: Slightly improve error messages on xml parse error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user-guide/genhelp.py

    rdf291a6 r15a8c94  
    7373
    7474def process_file(filename, parent=None):
    75     tree = ET.parse(open(filename)).getroot()
     75    try:
     76        tree = ET.parse(open(filename)).getroot()
     77    except:
     78        sys.stderr.write("\nException while processing %s\n" % filename)
     79        raise
    7680    fix_tree(tree)
    7781    return parse_tag(tree, parent)
Note: See TracChangeset for help on using the changeset viewer.