diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 12:26:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 12:35:00 +0000 |
commit | e637a635bf7b5a9a2e9dc20afc18aceec98d578f (patch) | |
tree | 86eb40ee869aebb3019a3b4a2b829a1830697483 | |
parent | f3a71e509af196391ec126d079cf1bd178e62ad5 (diff) | |
download | bitbake-e637a635bf7b5a9a2e9dc20afc18aceec98d578f.tar.gz |
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).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/command.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py index 3f28bca25..39a2e18a0 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -69,6 +69,7 @@ class Command: except CommandError as exc: return None, exc.args[0] except Exception: + import traceback return None, traceback.format_exc() else: return result, None |