Project

General

Profile

« Previous | Next » 

Revision 3660

Use new exc.reraise() where exc.raise_() was used, so that the stack trace is preserved when the exception is rethrown

View differences:

xml_func.py
75 75

  
76 76
def is_xml_func(node): return is_xml_func_name(node.tagName)
77 77

  
78
def process(node, on_error=exc.raise_, is_rel_func=None, db=None):
78
def process(node, on_error=exc.reraise, is_rel_func=None, db=None):
79 79
    '''Evaluates the XML functions in an XML tree.
80 80
    @param is_rel_func None|f(str) Tests if a name is a relational function.
81 81
        * If != None: Non-relational functions are removed, or relational

Also available in: Unified diff