Return generator instead of list

This commit is contained in:
taizan-hokouto
2020-11-15 19:50:53 +09:00
parent 086a14115f
commit 6adae578ef
2 changed files with 6 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ class DefaultProcessor(ChatProcessor):
if component is None:
continue
timeout += component.get('timeout', 0)
chatdata = component.get('chatdata')
chatdata = component.get('chatdata') # if from Extractor, chatdata is generator.
if chatdata is None:
continue
for action in chatdata: