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: