diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-27 15:41:21 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-28 12:44:06 +0000 |
commit | 2a69358610077d134cef38d37f24eddfc73fc294 (patch) | |
tree | 06c698b085edef9d6cbc45ef69117ada328ae943 /bitbake/lib/bb/command.py | |
parent | f3acb135e723258bd4b6072d5737d52e13d47054 (diff) | |
download | poky-2a69358610077d134cef38d37f24eddfc73fc294.tar.gz |
bitbake: command: Add missing import traceback
Without this, if an exception occurs the server will silently crash
with no feedback to the user about why (since traceback isn't imported).
(Bitbake rev: e637a635bf7b5a9a2e9dc20afc18aceec98d578f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 00b854e240..c08e2ce1f5 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -69,6 +69,7 @@ class Command: | |||
69 | except CommandError as exc: | 69 | except CommandError as exc: |
70 | return None, exc.args[0] | 70 | return None, exc.args[0] |
71 | except Exception: | 71 | except Exception: |
72 | import traceback | ||
72 | return None, traceback.format_exc() | 73 | return None, traceback.format_exc() |
73 | else: | 74 | else: |
74 | return result, None | 75 | return result, None |