Received: from eggs.gnu.org ([2001:4830:134:3::10]:44618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYdWA-0006mA-0k for qemu-devel@nongnu.org; Fri, 11 Apr 2014 11:37:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYdW5-0002m3-Ej for qemu-devel@nongnu.org; Fri, 11 Apr 2014 11:37:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYdW5-0002lr-6o for qemu-devel@nongnu.org; Fri, 11 Apr 2014 11:37:21 -0400 From: Markus Armbruster References: <20140402151558.8123.58942.stgit@fimbulvetr.bsc.es> <20140402151611.8123.436.stgit@fimbulvetr.bsc.es> Date: Fri, 11 Apr 2014 17:37:13 +0200 In-Reply-To: <20140402151611.8123.436.stgit@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Wed, 2 Apr 2014 17:16:11 +0200") Message-ID: <87d2gnx4gm.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [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: =?utf-8?Q?Llu=C3=ADs?= Vilanova Cc: =?utf-8?Q?Beno=C3=AEt?= Canet , qemu-devel@nongnu.org, Luiz Capitulino Llu=C3=ADs Vilanova writes: > 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=20 > pprint(exprs) This still hides information necessary to debug the crash. Let's just not catch these exceptions.