[Tutor] Re: Catching warnings?

Liam Clarke cyresse at gmail.com
Tue Oct 19 14:11:59 CEST 2004


Oops, "Just a quick question, catching errors is easy, but how to go about
catching errors?" 

I meant, of course, catching warnings.... (it's late,  that's my
excuse and I'm sticking to it.)


On Wed, 20 Oct 2004 01:10:00 +1300, Liam Clarke <cyresse at gmail.com> wrote:
> Hi all,
> 
> Just a quick question, catching errors is easy, but how to go about
> catching errors? I'd like to squelch a deprecation warning. I know the
> module's deprecated, but it's useful for the moment.
> 
> So far I've filtered it with Warnings.filterwarnings, but the docs
> state that warning are technically exceptions. Can you catch them the
> same way you can catch error codes?
> 
> Oh, and personally, I think I just met the most subtle way of saying
> 'You're missing a closed bracket' -
> 
> Token Error: EOF in multi-line statement
> 
> Grrrr
>


More information about the Tutor mailing list