-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 0.1.2
-
Component/s: None
-
None
In a few places where Motor asserts gr.parent is available should be done as:
assert gr.parent is not None, ...
This is because the greenlet class treats dead greenlets as false-like. This can be an issue when using existing greenlet code with motor as say:
Grandparent->parent->child
If the parent dies, the greenlet code in motor should just switch to the grandparent via the built in mechanism