Python 3 traceback fails when no exception is active

后端 未结 1 469
猫巷女王i
猫巷女王i 2021-01-15 16:03

I noticed that in Python2 when I try to dump the exception stack trace, but there\'s no active exception, it prints None:

Python 2.7.2+ (default         


        
相关标签:
1条回答
  • 2021-01-15 16:24

    That is a bug. It might be decided that an error should be raised, but that is definitely the wrong error.

    0 讨论(0)
提交回复
热议问题