From cf29d0786a02a71c2d032f07c5488b1746a22ae8 Mon Sep 17 00:00:00 2001 From: Y_SAKAI Date: Fri, 27 May 2022 15:08:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:SAP=E5=8F=97=E9=A0=98=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E5=87=A6=E7=90=86=20=E3=83=BB=E3=82=BD?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=82=B3=E3=83=BC=E3=83=89=E3=83=AC=E3=83=93?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=81=AE=E6=8C=87=E6=91=98=E5=8F=8D=E6=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...wdwh2021-staging-lambda-sap-fin-receive-check-monthly.py | 6 +++--- ...wdwh2021-staging-lambda-sap-sup-receive-check-monthly.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lambda/mbj-newdwh2021-staging-lambda-sap-fin-receive-check-monthly.py b/lambda/mbj-newdwh2021-staging-lambda-sap-fin-receive-check-monthly.py index 9f225763..8cb264f7 100644 --- a/lambda/mbj-newdwh2021-staging-lambda-sap-fin-receive-check-monthly.py +++ b/lambda/mbj-newdwh2021-staging-lambda-sap-fin-receive-check-monthly.py @@ -53,7 +53,7 @@ logger.setLevel(level) def lambda_handler(event, context): try: - # ① 処理開始ログを出力する + # ① 処理開始ログを出力する logger.info('I-01-01 処理開始 SAP_finデータ受領チェック処理(月次)') execute_datetoday = datetime.date.today() execute_date = execute_datetoday.strftime('%Y/%m/%d') @@ -71,7 +71,7 @@ def lambda_handler(event, context): monthly_day_response = monthly_day_obj.get() logger.info('I-02-03 チェック処理実施指定日ファイルを読み込みました') except Exception as e: - logger.error('E-02-01 チェック処理実施指定日設定ファイルの読み込みに失敗しました エラー内容:{e}') + logger.error(f'E-02-01 チェック処理実施指定日設定ファイルの読み込みに失敗しました エラー内容:{e}') raise FileReadException('E-02-01', e) # 2.処理稼働日が「②1.」で読み込んだ「チェック処理実施指定日ファイル」に存在するか確認する @@ -87,7 +87,7 @@ def lambda_handler(event, context): datetime.datetime.strptime(check_date, "%Y/%m/%d") except Exception as e: raise e - check_date_list.append(check_date) + check_date_list.append(check_date) if execute_date in check_date_list: logger.info('I-02-05 本日はチェック処理実施指定日のため、チェック処理を実施します') else: diff --git a/lambda/mbj-newdwh2021-staging-lambda-sap-sup-receive-check-monthly.py b/lambda/mbj-newdwh2021-staging-lambda-sap-sup-receive-check-monthly.py index 8e4270df..a1a5f14b 100644 --- a/lambda/mbj-newdwh2021-staging-lambda-sap-sup-receive-check-monthly.py +++ b/lambda/mbj-newdwh2021-staging-lambda-sap-sup-receive-check-monthly.py @@ -53,7 +53,7 @@ logger.setLevel(level) def lambda_handler(event, context): try: - # ① 処理開始ログを出力する + # ① 処理開始ログを出力する logger.info('I-01-01 処理開始 SAP_supデータ受領チェック処理(月次)') execute_datetoday = datetime.date.today() execute_date = execute_datetoday.strftime('%Y/%m/%d') @@ -71,7 +71,7 @@ def lambda_handler(event, context): monthly_day_response = monthly_day_obj.get() logger.info('I-02-03 チェック処理実施指定日ファイルを読み込みました') except Exception as e: - logger.error('E-02-01 チェック処理実施指定日設定ファイルの読み込みに失敗しました エラー内容:{e}') + logger.error(f'E-02-01 チェック処理実施指定日設定ファイルの読み込みに失敗しました エラー内容:{e}') raise FileReadException('E-02-01', e) # 2.処理稼働日が「②1.」で読み込んだ「チェック処理実施指定日ファイル」に存在するか確認する @@ -87,7 +87,7 @@ def lambda_handler(event, context): datetime.datetime.strptime(check_date, "%Y/%m/%d") except Exception as e: raise e - check_date_list.append(check_date) + check_date_list.append(check_date) if execute_date in check_date_list: logger.info('I-02-05 本日はチェック処理実施指定日のため、チェック処理を実施します') else: