Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError

This commit is contained in:
Vinay Sajip 2005-10-31 13:14:19 +00:00
parent ab0f947a21
commit 85c1909a78
2 changed files with 8 additions and 0 deletions

View file

@ -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)