-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnboundLocalError from index.handler
during deployment
#668
Comments
MustaphaU
changed the title
UnboundLocalError in
UnboundLocalError from Dec 1, 2024
index.handler
(defined in depoyment-support.yaml) during deploymentindex.handler
during deployment
I got the same error as well
|
BastLeblanc
added
help wanted
Extra attention is needed
and removed
help wanted
Extra attention is needed
labels
Dec 4, 2024
github-project-automation
bot
moved this from Pending review
to Shipped
in Retail Demo Store
Dec 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When deploying the Retail Demo Store, the following error is encountered when retries are exhausted during the execution of the
handler
function in theLoadDataLambdaFunction
in deployment-support.yaml.Error
The relevant code block:
The scope of
e
is local to theexcept
block and Python does not persist it outside that scope. The conditionif retries >= max_retries
runs outside the loop and, therefore, cannot accesse
. The value (e
) within the block can be assigned to a variable to be accessed outside.The text was updated successfully, but these errors were encountered: