Catching very general exceptions such as Exception is usually not recommended.
Generally, you would want to handle very specific errors in the exception handler.
This ensure that you do not hide other types of errors which should be fixed.
So, unless you specifically plan to handle any error, consider adding a more
specific exception.
Loading history...
28
log.warn('Unable to store exception message: %s', ex, exc_info=True)