Skip to content

Commit 0eb4746

Browse files
committed
Display error if cannot load gallery index
1 parent 2d17df2 commit 0eb4746

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/apps/controls-gallery/gallerydata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,7 @@ def import_modules(self):
194194
grid_item.examples.append(example_item)
195195
grid_item.examples.sort(key=lambda x: x.order)
196196
control_group_dir.grid_items.append(grid_item)
197-
control_group_dir.grid_items.sort(key=lambda x: x.name)
197+
try:
198+
control_group_dir.grid_items.sort(key=lambda x: x.name)
199+
except:
200+
print(control_group_dir.name, control_group_dir.grid_items)

0 commit comments

Comments
 (0)