From 39611a7cc6666263b78e6a40cd69d1c0b12de4c2 Mon Sep 17 00:00:00 2001 From: ivis-inoue Date: Fri, 14 Feb 2025 17:36:34 +0900 Subject: [PATCH] fix 45408 --- modules/weko-authors/weko_authors/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/weko-authors/weko_authors/admin.py b/modules/weko-authors/weko_authors/admin.py index d889fd49f3..e8a16fa6eb 100644 --- a/modules/weko-authors/weko_authors/admin.py +++ b/modules/weko-authors/weko_authors/admin.py @@ -272,8 +272,8 @@ def check_import_status(self): if data and data.get('tasks'): for task_id in data.get('tasks'): task = import_author.AsyncResult(task_id) - start_date = task.result['start_date'] if task.result else '' - end_date = task.result['end_date'] if task.result else '' + start_date = task.result.get('start_date', '') if task.result else '' + end_date = task.result.get('end_date', '') if task.result else '' status = states.PENDING error_id = None if task.result and task.result.get('status'):