Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 1a3157f

Browse files
authored
Merge pull request #67 from pypeclub/hotfix/switch_context
select_assets expect list or tuple
2 parents 555a291 + b1900ca commit 1a3157f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

avalon/tools/gui/widgets/widget_assets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def select_assets(self, assets, expand=True, key="name"):
163163
"""
164164
# TODO: Instead of individual selection optimize for many assets
165165

166+
if not isinstance(assets, (tuple, list)):
167+
assets = [assets]
166168
assert isinstance(
167169
assets, (tuple, list)
168170
), "Assets must be list or tuple"

0 commit comments

Comments
 (0)