-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
Hello,
There is an undefined variable in the exception handler when open() fails in laika.py:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python2.7/dist-packages/laikaboss-2.0-py2.7.egg/EGG-INFO/scripts/laika.py", line 402, in run
self.result_queue.put(answer)
NameError: global name 'answer' is not defined
Extract of the code:
396 try:
397 with open(next_task) as nextfile:
398 file_buffer = nextfile.read()
399 except IOError:
400 logging.debug("Error opening: %s" % (next_task))
401 self.task_queue.task_done()
402 self.result_queue.put(answer)
403 continueI am not really sure how to fix this, sorry.
Metadata
Metadata
Assignees
Labels
No labels