From: Richard Purdie Date: Fri, 14 Dec 2012 12:26:19 +0000 (+0000) Subject: command: Add missing import traceback X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e637a635bf7b5a9a2e9dc20afc18aceec98d578f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/lib/bb/command.py b/lib/bb/command.py index 3f28bca2577..39a2e18a023 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