gen: handle None in convert_yielded
This commit is contained in:
parent
c20c44d776
commit
447bf2e06b
|
@ -1215,7 +1215,9 @@ def convert_yielded(yielded):
|
||||||
.. versionadded:: 4.1
|
.. versionadded:: 4.1
|
||||||
"""
|
"""
|
||||||
# Lists and dicts containing YieldPoints were handled earlier.
|
# Lists and dicts containing YieldPoints were handled earlier.
|
||||||
if isinstance(yielded, (list, dict)):
|
if yielded is None:
|
||||||
|
return moment
|
||||||
|
elif isinstance(yielded, (list, dict)):
|
||||||
return multi(yielded)
|
return multi(yielded)
|
||||||
elif is_future(yielded):
|
elif is_future(yielded):
|
||||||
return yielded
|
return yielded
|
||||||
|
|
Loading…
Reference in New Issue