From 8912ead3b40a10c4068cb51eed2f7c5606c6e6d6 Mon Sep 17 00:00:00 2001 From: "msb@chromium.org" Date: Thu, 28 Jan 2010 20:25:16 +0000 Subject: [PATCH] gclient: Keyboard interrupt should not cause request to send stack Patch-contributed-by: Alexey Marinichev Review URL: http://codereview.chromium.org/553139 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37434 0039d316-1c4b-4281-b951-d872f2087c98 --- breakpad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breakpad.py b/breakpad.py index 003f9ad887..ff81d05489 100644 --- a/breakpad.py +++ b/breakpad.py @@ -34,7 +34,7 @@ def SendStack(stack, url='http://chromium-status.appspot.com/breakpad'): def CheckForException(): last_tb = getattr(sys, 'last_traceback', None) - if last_tb: + if last_tb and sys.last_type is not KeyboardInterrupt: SendStack(''.join(traceback.format_tb(last_tb)))