MadExcept最终尝试触发 [英] MadExcept triggers on try finally

查看:58
本文介绍了MadExcept最终尝试触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MadExcept调试应用程序.这是一个出色的框架,但是当在try finally块上发生异常时,它仍然显示该丑陋的框,并且用户认为该应用程序已崩溃.

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 ?

推荐答案

听起来像设计的那样.try/finally块不会捕获异常.这样可以确保即使引发异常也可以进行适当的清除.

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.

如果要处理异常,则需要使用try/except块.

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

这篇关于MadExcept最终尝试触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆