From 9ca141b69d4910379400ed1565a01b5b01fb4eaa Mon Sep 17 00:00:00 2001 From: eugenchio Date: Mon, 13 Jan 2025 16:36:27 +0200 Subject: [PATCH] Fix code styling. --- lambda-functions/handler.py | 1 - lambda-functions/newsletter_sign_up.py | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lambda-functions/handler.py b/lambda-functions/handler.py index 9f71c10..686b17c 100644 --- a/lambda-functions/handler.py +++ b/lambda-functions/handler.py @@ -2,7 +2,6 @@ import sentry_sdk from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration -from newsletter_sign_up import handle_newsletter_sign_up from contact_form import handle_contact_form diff --git a/lambda-functions/newsletter_sign_up.py b/lambda-functions/newsletter_sign_up.py index e078568..e7ecb60 100755 --- a/lambda-functions/newsletter_sign_up.py +++ b/lambda-functions/newsletter_sign_up.py @@ -53,9 +53,15 @@ def add_crisp_contact(event_body): def handle_newsletter_sign_up(event): assert event.get('email') is not None - logger.info('handle_newsletter_sign_up(): add_crisp_contact invoked. event={}'.format(event)) + logger.info( + 'handle_newsletter_sign_up():' + 'add_crisp_contact invoked. event={}'.format(event) + ) try: add_crisp_contact(event) except Exception as e: sentry_sdk.capture_exception(e) - logger.exception('handle_newsletter_sign_up(): add_crisp_contact failed') + logger.exception( + 'handle_newsletter_sign_up(): ' + 'add_crisp_contact failed' + )