Project

General

Profile

« Previous | Next » 

Revision 436

xml_func.py: Remove function nodes with syntax errors to prevent them from causing DatabaseErrors later

View differences:

lib/xml_func.py
96 96
        try: value = funcs[name](xml_dom.NodeTextEntryIter(node))
97 97
        except SyntaxException, e:
98 98
            exc.add_msg(e, 'function:\n'+str(node))
99
            xml_dom.remove(node)
99 100
            raise
100 101
        else: xml_dom.replace_with_text(node, value)
101 102
    else:

Also available in: Unified diff