From 5e49f0dcb62139ea0f20fc6a59589d97704d94fb Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Mon, 31 Oct 2005 14:20:56 +0000 Subject: Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError --- Lib/logging/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index ac734e5..5a0b0f5 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) -- cgit v0.12