Skip to content
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

Fix when no expressions or keep_warm is false #2185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manycoding
Copy link

When I set keep_warm_expression it fails with

    events=events
  File "/Users/valery/.local/share/virtualenvs/document_data_extract_zappa-j8vc3Vbe/lib/python3.6/site-packages/zappa/core.py", line 2783, in schedule_events
    print("Could not create event {} - Please define either an expression or an event source".format(name))
UnboundLocalError: local variable 'name' referenced before assignment

So I fixed it.

Description

GitHub Issues

When I set keep_warm_expression it fails with 
```
    events=events
  File "/Users/valery/.local/share/virtualenvs/document_data_extract_zappa-j8vc3Vbe/lib/python3.6/site-packages/zappa/core.py", line 2783, in schedule_events
    print("Could not create event {} - Please define either an expression or an event source".format(name))
UnboundLocalError: local variable 'name' referenced before assignment
```

So I fixed it.
@coveralls
Copy link

coveralls commented Dec 5, 2020

Coverage Status

Coverage decreased (-0.02%) to 72.954% when pulling 6aabdf4 on manycoding:patch-1 into 542c8c6 on Miserlou:master.

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.

2 participants