[wingide-users] Trapping exceptions
support at wingware.com
Wed Aug 6 20:56:43 MDT 2008
Tony Cappellini wrote:
> Is it normal for Wing to trap the following exception, when it is set
> to ImmediatelyIfAppear Unhandled ?
> I was expecting that Wing would not trap the exception, because "it
> is handled".
> def func(arg):
> assert type(arg) is types.IntType, "Message"
> x= func('ABC')
> except AssertionError:
> # do something else
Were you stepping through code? Wing will show the exception if it
changes the next line that it stops on when stepping. It also stops on
assertions because AssertionError is in the default list of exceptions
that Wing always stops at.
More information about the wingide-users