En Mon, 04 Feb 2008 11:53:52 -0200, Michael Goerz <[EMAIL PROTECTED]> escribi�:
> when I try to catch ctrl+c with > > except KeyboardInterrupt: > > pychecker tells me > > Catching a non-Exception object (KeyboardInterrupt) > > It works fine, but the message indicates that it's not completely clean. > How should I write the exception correctly? Your code is right; the latest official release of pychecker doesn't support Python 2.5. The exception hierarchy has changed a little, now you have BaseException -> Exception -> all standard exceptions. KeyboardInterrupt and SystemExit are now direct subclasses of BaseException, not of Exception. According to the changelog [1] the development version does support 2.5 [1] http://pychecker.cvs.sourceforge.net/pychecker/pychecker/CHANGELOG?view=markup -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list