Try replacing print >> web.debug, traceback.format_exc() with
print >> web.debug, str(traceback.format_exc())

It might provide a better traceback at least: I'm not sure what you
mean by @50% : a paste bin of your code and how to reproduce the error
might be more useful.

On Nov 24, 8:30 am, skp_999 <[EMAIL PROTECTED]> wrote:
> My web application run 100% OK with webpy 0.23 but when I upgraded to
> 0.3 (following upgrade guide) my app run "@ 50%". Sometimes, even with
> simple functions, the app run ok then it suddenly dies with a Python
> error. Example:http://example.com/search/apple-> 
> OKhttp://example.com/search/python-> dieshttp://example.com/search/orange-> 
> OKhttp://example.com/search/orang-> dies
> (note that that my code works fine with .23)
>
> the last part of Python error (it seems also that .30 doesn't see
> app.internalerror = web.debugerror ) is:
>
>   197             except:
>   198                 print >> web.debug, traceback.format_exc()
>   199                 raise self.internalerror()
>   200
>   201         try:
> self = <web.application.application instance at 0x8c9fc8c>,
> self.internalerror = <function debugerror at 0xb7c66304>
>
> <type 'exceptions.TypeError'>: exceptions must be classes, instances,
> or strings (deprecated), not TemplateResult
>
> How can I fix it ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to