thiell/test — Issue #28: Better error handling for some worker accessors
Author: thiell
Created: 2012-03-03 16:28:36+00:00
State: open
Labels: Lib

For example, if an user forgot to task.schedule(a worker), and try to access to its buffers, avoid trace like:

{{{
File "../lib/ClusterShell/Worker/Worker.py", line 190, in node_buffer
return self.task._msg_by_source((self, node))
AttributeError: 'NoneType' object has no attribute '_msg_by_source'
}}}