File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,14 @@ def build_category(
103
103
104
104
for category in all_layouts :
105
105
# Get category name and description
106
- with open (APP_ROOT / category / f"{ category } .yml" ) as file :
107
- category_info = safe_load (file )
108
- category_title = category_info ["title" ]
109
- category_descrip = category_info ["description" ]
106
+ try :
107
+ with open (APP_ROOT / category / f"{ category } .yml" ) as file :
108
+ category_info = safe_load (file )
109
+ category_title = category_info .get ("title" , category )
110
+ category_descrip = category_info .get ("description" , "" )
111
+ except FileNotFoundError :
112
+ category_title = category
113
+ category_descrip = ""
110
114
111
115
# Build summary table
112
116
summary_table = build_summary_table (
You can’t perform that action at this time.
0 commit comments