UnboundLocalError: local variable 'reasons_to_fail' referenced before assignment
paulj3000 opened this issue · 0 comments
paulj3000 commented
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: