]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Exception handling now raises KeyboardInterrupt and SystemExit rather than passing...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 31 Oct 2005 14:20:56 +0000 (14:20 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 31 Oct 2005 14:20:56 +0000 (14:20 +0000)
Lib/logging/__init__.py

index ac734e541e049b47a1c9c0c782047b813378a770..5a0b0f50213dce22df1c43f73fd4b4b73e81d63f 100644 (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)