Skip to content

Commit 06b58f4

Browse files
committed
ironpython doesn't like yielding here
1 parent 9b82598 commit 06b58f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/compas/plugins.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,16 @@ def wrapper(*args, **kwargs):
285285

286286
# Collect all matching plugins
287287
elif selector == 'collect_all':
288+
results = []
289+
288290
for plugin_impl in _collect_plugins(extension_point_url):
289291
try:
290292
result = plugin_impl.method(*args, **kwargs)
291-
yield result
293+
results.append(result)
292294
except Exception as e:
293-
yield e
295+
results.append(e)
296+
297+
return results
294298
else:
295299
raise ValueError('Unexpected selector type. Must be either: first_match or collect_all')
296300

0 commit comments

Comments
 (0)