Skip to content

Conversation

vijay1992-07
Copy link

…e case where the parameter is not found in the event object.

Issue #, if available:

Description of changes:
In lambda_handler() when calling get_named_parameter() its considered as best case that "booking_id" will exists. If it does not next() will raise stopIteration exception leading further failure. Changes made to avoid stopIteration exception and provide NONE when correct key does not exists.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…e case where the parameter is not found in the event object.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant