projects
/
tools
/
repa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f665825
)
Quit gracefully when interrupted with ^C
author
Ed Bartosh
<eduard.bartosh@intel.com>
Mon, 9 Dec 2013 08:32:32 +0000
(10:32 +0200)
committer
Eduard Bartosh
<eduard.bartosh@intel.com>
Wed, 11 Dec 2013 18:11:58 +0000
(20:11 +0200)
Hide KeyboardInterrupt traceback to avoid scaring users.
Change-Id: I9434f984104ddeec0563495b62037abf1d87e210
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/8393
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
repa/main.py
patch
|
blob
|
history
diff --git
a/repa/main.py
b/repa/main.py
index b6ad9fcea041553a1c5e6ff4af3c4a5e28fbf5d8..bc881da223f0fb98740dedb79fa9c154cad07adf 100755
(executable)
--- a/
repa/main.py
+++ b/
repa/main.py
@@
-123,7
+123,7
@@
def main(argv=sys.argv[1:]):
try:
args = parse_args(argv)
return args.func(args)
- except
RepaException,
error:
+ except
(RepaException, KeyboardInterrupt) as
error:
print >> sys.stderr, error