[PATCH] handling of KeyboardIterrupt added
- From: Sylvain Rabot <sylvain abstraction fr>
- To: meld-list gnome org
- Cc: Sylvain Rabot <sylvain abstraction fr>
- Subject: [PATCH] handling of KeyboardIterrupt added
- Date: Tue, 27 Apr 2010 22:41:03 +0200
When meld is launched in a shell and you kill it with ^C signal
there is some python error output which can be avoid with this patch.
Signed-off-by: Sylvain Rabot <sylvain abstraction fr>
---
bin/meld | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/bin/meld b/bin/meld
index 0967396..b3c273b 100755
--- a/bin/meld
+++ b/bin/meld
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
### Copyright (C) 2002-2006 Stephen Kennedy <stevek gnome org>
@@ -114,7 +114,11 @@ def main():
import meld.meldapp
app = meld.meldapp.MeldApp()
app.parse_args(sys.argv[1:])
- gtk.main()
+ try:
+ gtk.main()
+ except KeyboardInterrupt, e:
+ print
+ pass
if profiling:
import profile
--
1.7.0.6
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]