diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/command.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index a590e61abe..32d5b5bab6 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -89,7 +89,16 @@ class Command: | |||
89 | return False | 89 | return False |
90 | else: | 90 | else: |
91 | return False | 91 | return False |
92 | except: | 92 | except KeyboardInterrupt as exc: |
93 | self.finishAsyncCommand("Interrupted") | ||
94 | return False | ||
95 | except SystemExit as exc: | ||
96 | arg = exc.args[0] | ||
97 | if isinstance(arg, basestring): | ||
98 | self.finishAsyncCommand(arg) | ||
99 | else: | ||
100 | self.finishAsyncCommand("Exited with %s" % arg) | ||
101 | except Exception: | ||
93 | import traceback | 102 | import traceback |
94 | self.finishAsyncCommand(traceback.format_exc()) | 103 | self.finishAsyncCommand(traceback.format_exc()) |
95 | return False | 104 | return False |