diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-07-07 07:15:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-07-07 07:15:28 +0300 |
commit | b1c3038f1818140c6b34b137bdde07022855f290 (patch) | |
tree | 769435283f10434891084e7a2b1cdf6d50023052 | |
parent | e68c8ba24edebc83b86c2fa06f1e74d47737261c (diff) |
Fix Filter Add-ons panel display for missing add-ons
Check the add-on exists before getting it's info.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_workspace.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_workspace.py b/release/scripts/startup/bl_ui/properties_workspace.py index 822ba61e9b5..7b9cbb8aac8 100644 --- a/release/scripts/startup/bl_ui/properties_workspace.py +++ b/release/scripts/startup/bl_ui/properties_workspace.py @@ -73,7 +73,10 @@ class WORKSPACE_PT_addons(WorkSpaceButtonsPanel, Panel): for addon in prefs.addons: module_name = addon.module - info = addon_utils.module_bl_info(addon_map[module_name]) + module = addon_map.get(module_name) + if module is None: + continue + info = addon_utils.module_bl_info(module) if not info["use_owner"]: continue is_enabled = module_name in owner_ids |