MadExcept triggers on try finally

守給你的承諾、 提交于 2020-01-03 19:55:10

问题


I am using MadExcept to debug my applications. It's an excelent framework though when a exception ocurrs on a try finally block it still displays that ugly box and the user thinks the app has crashed.

How can i remove that ? Is there a way ?


回答1:


Sounds like it's working as designed. A try/finally block does not catch exceptions; it ensures that proper cleanup can be done even if an exception is raised.

If you want to handle an exception, you need to use a try/except block instead.



来源:https://stackoverflow.com/questions/10746927/madexcept-triggers-on-try-finally

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!