Revision 1371
Added by Aaron Marcuse-Kubitza almost 13 years ago
xml_func.py | ||
---|---|---|
35 | 35 |
value = funcs[name](xml_dom.NodeTextEntryIter(node)) |
36 | 36 |
xml_dom.replace_with_text(node, value) |
37 | 37 |
except Exception, e: # also catch XML func internal errors |
38 |
# Save in case later code throws exception, overwriting exc_info()
|
|
39 |
exc.add_exc_info(e)
|
|
38 |
# Save in case another exception raised, overwriting sys.exc_info()
|
|
39 |
exc.add_traceback(e)
|
|
40 | 40 |
str_ = str(node) |
41 | 41 |
exc.add_msg(e, 'function:\n'+str_) |
42 | 42 |
xml_dom.replace(node, node.ownerDocument.createComment( |
Also available in: Unified diff
exc.py: Fixed bug in traceback-saving mechanism that didn't deal with nested Exceptions (such as Exceptions with causes in ExceptionWithCause). Renamed add_exc_info() to add_traceback() since we really only need to store the traceback.