From 9c2fd1b6b70a24f6f26ab7af7f8abc722cc41903 Mon Sep 17 00:00:00 2001 From: "Sean P. Goggins" Date: Thu, 12 Sep 2024 15:33:34 +0200 Subject: [PATCH] update Signed-off-by: Sean P. Goggins --- augur/tasks/git/facade_tasks.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/augur/tasks/git/facade_tasks.py b/augur/tasks/git/facade_tasks.py index b899cb05f4..3e781e34df 100644 --- a/augur/tasks/git/facade_tasks.py +++ b/augur/tasks/git/facade_tasks.py @@ -177,8 +177,7 @@ def facade_fetch_missing_commit_messages(repo_git): absolute_path = get_absolute_repo_path(facade_helper.repo_base_directory, repo.repo_id, repo.repo_path, repo.repo_name) repo_loc = (f"{absolute_path}/.git") - try: - + try: commit_message = check_output( f"git --git-dir {repo_loc} log --format=%B -n 1 {hash}".split() ).decode('utf-8').strip() @@ -198,13 +197,11 @@ def facade_fetch_missing_commit_messages(repo_git): to_insert = [] to_insert.append(msg_record) - - if to_insert: - bulk_insert_dicts(logger, to_insert, CommitMessage, ["repo_id","cmt_hash"]) - except Exception as e: - logger.info(f'The error message is {e}') - continue + logger.info(f'The exception is : {3}.') + + if to_insert: + bulk_insert_dicts(logger, to_insert, CommitMessage, ["repo_id","cmt_hash"]) #enable celery multithreading