summaryrefslogtreecommitdiffstats
path: root/bitbake
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:36:03 +0000
commit1572c1517c96d6556a832b9511957d311a5f457d (patch)
treecf6707a96e969f698d24866c5641af144d3a9825 /bitbake
parent1b0c0f290290ff62fa7773379eb3898442d539c4 (diff)
downloadpoky-1572c1517c96d6556a832b9511957d311a5f457d.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')
-rw-r--r--bitbake/lib/bb/command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 3f28bca257..39a2e18a02 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