Fix T62901: Bad handling of missing addon category

This commit is contained in:
2019-03-27 15:12:25 +01:00
parent 34c2185af4
commit 56b06ee83a

View File

@@ -211,8 +211,8 @@ def modules(module_cache=addons_fake_modules, *, refresh=True):
mod_list = list(module_cache.values())
mod_list.sort(
key=lambda mod: (
mod.bl_info["category"],
mod.bl_info["name"],
mod.bl_info.get("category", ""),
mod.bl_info.get("name", ""),
)
)
return mod_list