From 7dc71980fa62535da56222157a08382c9b9c1258 Mon Sep 17 00:00:00 2001 From: smahana123 Date: Fri, 9 Dec 2022 10:50:04 +0530 Subject: [PATCH] Reliability Bugs Fixing. Issue-Id: AIMLFW-6 Signed-off-by: smahana123 Change-Id: Ic9073f5f8a9e4c891afa5ef53c3e48a5d10d1862 --- trainingmgr/db/common_db_fun.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trainingmgr/db/common_db_fun.py b/trainingmgr/db/common_db_fun.py index 6f3b7d9..bf3926f 100644 --- a/trainingmgr/db/common_db_fun.py +++ b/trainingmgr/db/common_db_fun.py @@ -49,7 +49,7 @@ def get_data_extraction_in_progress_trainingjobs(ps_db_obj): if conn is not None: conn.rollback() raise DBException("Failed to execute query in " + \ - "get_data_extraction_in_progress_trainingjobs," + + str(err)) + "get_data_extraction_in_progress_trainingjobs," + str(err)) finally: if conn is not None: conn.close() @@ -163,7 +163,7 @@ def get_field_of_given_version(trainingjob_name, version, ps_db_obj, field): except Exception as err: if conn is not None: conn.rollback() - raise DBException("Failed to execute query in get_field_of_given_version" + + str(err)) + raise DBException("Failed to execute query in get_field_of_given_version" + str(err)) finally: if conn is not None: conn.close() @@ -199,7 +199,7 @@ def change_in_progress_to_failed_by_latest_version(trainingjob_name, ps_db_obj): if conn is not None: conn.rollback() raise DBException("Failed to execute query in " + \ - "change_in_progress_to_failed_by_latest_version" + + str(err)) + "change_in_progress_to_failed_by_latest_version" + str(err)) finally: if conn is not None: conn.close() -- 2.16.6