[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 2/4] qapi: [trivial] Show full exception message
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH v7 2/4] qapi: [trivial] Show full exception message in "test-qapi.py" |
Date: |
Tue, 1 Apr 2014 16:10:53 +0200 |
User-agent: |
StGit/0.17.1-dirty |
Signed-off-by: Lluís Vilanova <address@hidden>
---
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 = 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)
pprint(exprs)