Python RQ回溯-如何提取实际文本?
我遵循RQ文档中关于编写自定义exceptoin处理程序的推荐模式:Python RQ回溯-如何提取实际文本?,python,redis,traceback,Python,Redis,Traceback,我遵循RQ文档中关于编写自定义exceptoin处理程序的推荐模式: def my_handler(job, exc_type, exc_value, traceback): # do custom things here # for example, write the exception info to a DB 问题是,当我尝试打印或记录回溯时,我得到以下结果: <traceback object at 0x1027fcd40> 如何提取记录器的实际文本 [
def my_handler(job, exc_type, exc_value, traceback):
# do custom things here
# for example, write the exception info to a DB
问题是,当我尝试打印或记录回溯时,我得到以下结果:
<traceback object at 0x1027fcd40>
如何提取记录器的实际文本
['tb_frame', 'tb_lasti', 'tb_lineno', 'tb_next']