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

后端 未结 0 2007
一向
一向 2020-12-23 01:01

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

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