From: Vinay Sajip Date: Mon, 31 Oct 2005 14:20:56 +0000 (+0000) Subject: Exception handling now raises KeyboardInterrupt and SystemExit rather than passing... X-Git-Tag: v2.4.3c1~228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e49f0dcb62139ea0f20fc6a59589d97704d94fb;p=thirdparty%2FPython%2Fcpython.git Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index ac734e541e04..5a0b0f50213d 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -738,6 +738,8 @@ class StreamHandler(Handler): except UnicodeError: self.stream.write(fs % msg.encode("UTF-8")) self.flush() + except (KeyboardInterrupt, SystemExit): + raise except: self.handleError(record)