[Tutor] Getting the real exception clause

Dave Angel davea at davea.name
Mon Jun 17 02:12:55 CEST 2013


On 06/16/2013 08:04 PM, Jim Mooney wrote:
> On 16 June 2013 16:41, Dave Angel <davea at davea.name> wrote:
>
>> But if you have some other reason to do it your way, then just look at the
>> type of err.
>>
>> print( type(err), err)
>>
> Yes, that's what I was looking for. It's just a learning tool to see
> the exceptions without the ugly BUNG! and red traceback screen I get
> from my IDE, then having to close the message-box so I can see the
> interpreter again ;')

So let me get this straight. Your IDE is busted and ruins the standard 
error traceback message.  So you catch "exception" and try to recreate 
the feature as it was intended to work.

I'd look closer at the IDE and see if it's configurable to remove ugly 
features.




-- 
DaveA


More information about the Tutor mailing list