aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-14 12:26:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-14 12:35:00 +0000
commite637a635bf7b5a9a2e9dc20afc18aceec98d578f (patch)
tree86eb40ee869aebb3019a3b4a2b829a1830697483
parentf3a71e509af196391ec126d079cf1bd178e62ad5 (diff)
downloadbitbake-e637a635bf7b5a9a2e9dc20afc18aceec98d578f.tar.gz
bitbake-e637a635bf7b5a9a2e9dc20afc18aceec98d578f.tar.bz2
bitbake-e637a635bf7b5a9a2e9dc20afc18aceec98d578f.zip
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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 3f28bca2..39a2e18a 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