Skip to content

Commit

Permalink
Fix code styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenchio committed Jan 13, 2025
1 parent f382093 commit 9ca141b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion lambda-functions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
10 changes: 8 additions & 2 deletions lambda-functions/newsletter_sign_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)

0 comments on commit 9ca141b

Please sign in to comment.