fix:SAP受領チェック処理

・ソースコードレビューの指摘反映
This commit is contained in:
Y_SAKAI 2022-05-27 15:08:50 +09:00
parent c78ba8a24c
commit cf29d0786a
2 changed files with 6 additions and 6 deletions

View File

@ -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.」で読み込んだ「チェック処理実施指定日ファイル」に存在するか確認する

View File

@ -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.」で読み込んだ「チェック処理実施指定日ファイル」に存在するか確認する