Max Ischenko wrote:
> 
> Simon Belak wrote:
> 
>>    @dispatch_error.before("tg_exceptions is not None")
>>
>> will be applied only when handling an exception.
> 
> Cool. One thing: how to get the traceback?
> 
> When I tried to print it using standard log.exception I got:
> Traceback (most recent call last):
>   File "_speedups.pyx", line 279, in _speedups.__getitem__
> KeyError: 8

If you just want to know what function raised the exception, tg_source 
should be of some help, otherwise I am afraid you need to look into 
inspect.trace or traceback module (perhaps print_last()).

Cheers,
Simon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to