From 80c624a3d9f4d229cae472bef9021d71c8329ee2 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 e6135edf00f..3e1cd346f5f 100644 --- a/tools/testClient/dbConnection.py +++ b/tools/testClient/dbConnection.py @@ -42,7 +42,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: