On Monday, July 6, 2015 at 6:40:06 PM UTC-3, Cédric Krier wrote:
>
> On 2015-07-06 12:27, Mariano Ramon wrote: 
> > is there anyway to customize runtime errors that show the python 
> exception 
> > and use a catch all with a more user friendly message? 
>
> By definition a traceback is an exception that is not expected. 
> Hiding it will just result of never fixing the problem, so that's why 
> Tryton shows such unexpected error. 
> If you want a friendly message, you must write code that doesn't crash 
> unexpectly. 
>
>

Of course, it was not intended as a solution. I asked because frameworks 
usually have a debug mode that works like it does now and the prodution 
mode where internals are not leaked in case of a bug.

Mariano

 

Reply via email to