Generally, try/except
clauses are used to handle errors and exceptions, catch them and act accordingly. But suppose, there is a script and the user is not sure where the exceptions can be raised. Now instead of applying try/except everywhere, is there any module or decorator which can catch any exception to occur and simply let the program not break?
Edit : This can not be a duplicate of try/except question. Of course I am aware of it and can apply it to all the possible places I know the exception may occur. I'm specifically looking for some module or a decorator which deals with exception handling. A builtin function which is called just before an error is raised would solve the problem too.