diff --git a/qutebrowser/completion/models/urlmodel.py b/qutebrowser/completion/models/urlmodel.py index 6cb3b1501..1f06fe861 100644 --- a/qutebrowser/completion/models/urlmodel.py +++ b/qutebrowser/completion/models/urlmodel.py @@ -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