mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError
This commit is contained in:
parent
ab0f947a21
commit
85c1909a78
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue