Re: [Tutor] Universal error handler

2006-06-20 Thread Matti Niemelä
Thank you all for your replies. > It looks a lot like what you asked for! What do you find > disfunctional? Is it the call to the main function? I'm just trying to find a way not to indent the code more then necessary. Makes it messy. That's just me :) > Chances are you may have already seen

[Tutor] Universal error handler

2006-06-20 Thread Matti Niemelä
Hi! Just started learning Python, and I was wondering if there is a way to catch an error or errors (like EOFError) whenever it occures during the script? The script (the program) wouldn't have any handling for that error itself, but a seperate block would handle that at the start or the end o