From 55784875c94691e2b3f22dbc7f267dda37b0d276 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 4 Apr 2012 16:40:44 +0530 Subject: [PATCH] reveal the complete exception from the dbClient reviewed-by: Edison Su --- tools/testClient/dbConnection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testClient/dbConnection.py b/tools/testClient/dbConnection.py index bd2bdc09a5b..b6d99193f46 100644 --- a/tools/testClient/dbConnection.py +++ b/tools/testClient/dbConnection.py @@ -54,7 +54,7 @@ class dbConnection(object): resultRow.append(r) return resultRow except pymysql.MySQLError, e: - raise cloudstackException.dbException("db Exception:%s"%e[1]) + raise cloudstackException.dbException("db Exception:%s"%e) except: raise cloudstackException.internalError(sys.exc_info()) finally: