On Monday, March 7, 2016 at 6:11:42 PM UTC-8, [email protected] wrote: > > I dont want to be anoying but i still need some help and didnt find any > information. My "solution" cant catch models or views errors. > > Thanks! > > I haven't had a chance to study it yet, but the ticket class is in gluon/restricted.py (it's part of the restricted execution environment). I suspect you have to replace the class rather than just subclass it, but that's from a very cursory look.
/dps > El lunes, 22 de febrero de 2016, 16:45:26 (UTC-4:30), > [email protected] escribió: >> >> Hello! >> >> I want to manage and catch all the error of my website using sentry ( >> https://getsentry.com/welcome/), reading some post in this forum i found >> this: >> https://groups.google.com/forum/#!searchin/web2py/disable$20tickets$20error/web2py/0E73_7KbGJI/9WEfWCpty-4J >> >> Based in that solution i've created this inside one of my models. >> >> from raven import Client >> >> >> def mycacher(f): >> client = >> Client('*****************************************************************') >> try: >> d = f() >> return d >> except: >> client.captureException() >> >> response._caller = mycacher >> >> With this i'm able to catch all the exceptions originated by a function >> in the controller or by a function call inside a controller is handled with >> this code, but the problems comes when a code inside the models (but >> outside functions) is executed, for example, database definitions etc... >> >> I know i can wrap all my code with a try... Except to catch this but >> there is any other solution for entirely "Bypassing" the ticket system in >> order to use other system? >> >> Thanks for your help! >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

