commit | 202dd1ef420359c05814cbfcc5c27e71c90c16d9 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Dec 07 03:39:34 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Dec 07 03:39:34 2001 +0000 |
tree | dccbd6b3eef7f95d467647384cc6eb3cc361879b | |
parent | eb4b7bad336481a34b2db01cbea809de726f9698 [diff] |
In unconditional except clauses, don't catch KeyboardInterrupt -- it's annoying that often you have to hit ^C numerous times before it works. The solution: before the "except:" clause, insert "except KeyboardInterrupt: raise". This propagates KeyboardInterrupt out, stopping the test in its tracks.