From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVMtp-0004ge-1o for qemu-devel@nongnu.org; Wed, 02 Apr 2014 11:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVMti-0007Zq-07 for qemu-devel@nongnu.org; Wed, 02 Apr 2014 11:16:21 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:39690 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVMth-0007Zc-Jq for qemu-devel@nongnu.org; Wed, 02 Apr 2014 11:16:13 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Wed, 2 Apr 2014 17:16:11 +0200 Message-Id: <20140402151611.8123.436.stgit@fimbulvetr.bsc.es> In-Reply-To: <20140402151558.8123.58942.stgit@fimbulvetr.bsc.es> References: <20140402151558.8123.58942.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v8 2/4] qapi: [trivial] Show full exception message in "test-qapi.py" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Beno=C3=AEt=20Canet?= , Markus Armbruster , Luiz Capitulino Signed-off-by: Llu=C3=ADs Vilanova --- tests/qapi-schema/test-qapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi= .py index b3d1e1d..ac6da13 100644 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -18,8 +18,8 @@ try: exprs =3D parse_schema(sys.stdin) except SystemExit: raise -except: - print >>sys.stderr, "Crashed:", sys.exc_info()[0] +except Exception, e: + print >>sys.stderr, "Crashed:", str(e) exit(1) =20 pprint(exprs)