Fixed crash which could occur if user adds nonexistent category to url.open_categories_shown

This commit is contained in:
Philip 2018-06-17 10:42:45 +02:00
parent a2b1e041d6
commit 0a9806daf3

View File

@ -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