From 0166f85ab9ae81d7e1c1c86032af64be83e3b820 Mon Sep 17 00:00:00 2001 From: billmetangmo <25366207+billmetangmo@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:20:15 +0000 Subject: [PATCH] fix: code don't raise locally on error We needed to check on sentry which can be cumbersome --- infra/api/lambda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/api/lambda.py b/infra/api/lambda.py index 68041b1..52f94d7 100644 --- a/infra/api/lambda.py +++ b/infra/api/lambda.py @@ -54,15 +54,15 @@ def register_handler(event, context): } except Exception as e: capture_exception(e) + raise def scan_handler(event, context): try: - - print(event) scan_consulate_passport_page() extract_names_from_images() notify_user_registered() except Exception as e: capture_exception(e) + raise