Spaces:
Runtime error
Runtime error
Benjamin Bossan
commited on
Commit
•
825249c
1
Parent(s):
00bfdf9
Make code not error w/o visible attribute
Browse files
utils.py
CHANGED
@@ -72,7 +72,7 @@ def iterate_key_section_content(
|
|
72 |
else:
|
73 |
title = val.title
|
74 |
|
75 |
-
if not val
|
76 |
continue
|
77 |
|
78 |
return_key = key if not parent_keys else "/".join(parent_keys + [key])
|
|
|
72 |
else:
|
73 |
title = val.title
|
74 |
|
75 |
+
if not getattr(val, "visible", True):
|
76 |
continue
|
77 |
|
78 |
return_key = key if not parent_keys else "/".join(parent_keys + [key])
|