Skip to content

Commit

Permalink
Merge pull request #190 from MozillaReality/generator-fix
Browse files Browse the repository at this point in the history
Fix generator
  • Loading branch information
keianhzo authored Jan 3, 2023
2 parents d5aa32b + 9123c0f commit 2c310a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/io_hubs_addon/components/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,17 @@ def redirect_c_stdout(binary_stream):


def get_host_components(host):
# Note: this used to be a generator but we detected some issues in Mac so we reverted to returning an array.
components = []
for component_item in host.hubs_component_list.items:
component_name = component_item.name
component_class = get_component_by_name(component_name)
if not component_class:
continue

component = getattr(host, component_class.get_id())
yield component
components.append(component)
return components


def wrap_text(text, max_length=70):
Expand Down

0 comments on commit 2c310a2

Please sign in to comment.