How to handle AssertionError in Python and find out which line or statement it occurred on?

后端 未结 0 980
庸人自扰
庸人自扰 2020-12-23 01:09

I want to handle AssertionErrors both to hide unnecessary parts of the stack trace from the user and to print a message as to why the error occurred and what th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题