diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2005-10-31 13:14:19 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2005-10-31 13:14:19 (GMT) |
commit | 85c1909a78c97745cd41a56be7bce372b7d60d64 (patch) | |
tree | ed86e7113e4a4c9dc897bdb9b87cd7a39ad9e34d /Lib/logging/__init__.py | |
parent | ab0f947a21008b57121cc40b01dcbb3d79f1f65a (diff) | |
download | cpython-85c1909a78c97745cd41a56be7bce372b7d60d64.zip cpython-85c1909a78c97745cd41a56be7bce372b7d60d64.tar.gz cpython-85c1909a78c97745cd41a56be7bce372b7d60d64.tar.bz2 |
Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |