Can anyone help ? I understand from the TAL documentation that the on-error tag sets a var error. <<< ##bind namespace=_ ... error = _['error'] print error.type print error.value print error.traceback return printed
Unfortunately the error produced says that: ErrorInfo instance has no attribute 'traceback' Checking the Tales.py i agree. It doesn't. type and value are fine, but how do i get the traceback????? Drew
drew nichols wrote:
Checking the Tales.py i agree. It doesn't. type and value are fine, but how do i get the traceback?????
The actual traceback object is not accessible to untrusted code. If you really need access to it, you can probably write an External Method that uses sys.exc_info() and traceback.format_exception() to return a nicely formatted traceback string. Cheers, Evan @ 4-am
participants (2)
-
drew nichols -
Evan Simpson