def handle_exception(ex_cls, ex, trace):
"""Catches all errors and sends them through the logger"""
LOGGER.critical("EXCEPTION")
LOGGER.critical(''.join(traceback.format_tb(trace)))
LOGGER.critical('%s: %s', ex_cls, ex)
评论列表
文章目录