Skip to content

Commit

Permalink
fix: code don't raise locally on error
Browse files Browse the repository at this point in the history
We needed to check on sentry which can be cumbersome
  • Loading branch information
billmetangmo committed Aug 30, 2024
1 parent 71af777 commit 0166f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/api/lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0166f85

Please sign in to comment.