Fixed crash which could occur if user adds nonexistent category to url.open_categories_shown
This commit is contained in:
parent
a2b1e041d6
commit
0a9806daf3
@ -81,6 +81,7 @@ def url(*, info):
|
||||
models["history"] = hist_cat
|
||||
|
||||
for category in categories:
|
||||
model.add_category(models[category])
|
||||
if category in models:
|
||||
model.add_category(models[category])
|
||||
|
||||
return model
|
||||
|
Loading…
Reference in New Issue
Block a user