From c5080af009ab9ca48d61287ef779d030f6d9dbd2 Mon Sep 17 00:00:00 2001 From: Daniel Fangl Date: Mon, 25 Nov 2024 16:02:34 +0100 Subject: [PATCH] Fix hot-reload make target --- Makefile | 2 +- lambdas/scoring/handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 27770f3..acd2827 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,6 @@ clean: ## Clean up any temporary files rm *.zip hot-reload: - awslocal lambda update-function-code --function-name ScoringFunction --s3-bucket hot-reload --s3-key "$(pwd)/lambdas/scoring" + awslocal lambda update-function-code --function-name ScoringFunction --s3-bucket hot-reload --s3-key "$$(pwd)/lambdas/scoring" .PHONY: usage deploy web save-state load-state clean diff --git a/lambdas/scoring/handler.py b/lambdas/scoring/handler.py index 05b3514..3bab171 100644 --- a/lambdas/scoring/handler.py +++ b/lambdas/scoring/handler.py @@ -3,7 +3,7 @@ from decimal import Decimal, getcontext def lambda_handler(event, context): - # raise Exception() + raise Exception() getcontext().prec = 6 dynamodb = boto3.resource('dynamodb')