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

UnboundLocalError: local variable 'reasons_to_fail' referenced before assignment #520

Open
paulj3000 opened this issue Jul 9, 2016 · 0 comments

Comments

@paulj3000
Copy link

Good afternoon,

When using lettuce containing background and outlines, I come across this error:

File "/Users/pdimitriu/Coding/Projects/smartkidzlibrary/skmenv/lib/python2.7/site-packages/lettuce/core.py", line 740, in run_scenario
reasons_to_fail)
UnboundLocalError: local variable 'reasons_to_fail' referenced before assignment     

Moving the reasons_to_fail assignment from line 729 to line 723 solved the problem. Now my code looks like this:

    def run_scenario(almost_self, order=-1, outline=None, run_callbacks=False):
        reasons_to_fail=[]
        try:
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

No branches or pull requests

1 participant