Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Inch <mythologylover75@gmail.com>2020-03-31 08:12:09 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-03-31 08:12:09 +0300
commite4ccb4cef4a907c8271388c00602dc72bb8f3180 (patch)
tree2df19f1ddb784e8de24982210ab9e4878e847839 /object_collection_manager/ui.py
parenta32b859fecb1a1d269408d0b9730eb5c7fc52c0f (diff)
Collection Manager: Code cleanup. Task: T69577
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r--object_collection_manager/ui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py
index 4640c9c2..7928e757 100644
--- a/object_collection_manager/ui.py
+++ b/object_collection_manager/ui.py
@@ -256,7 +256,8 @@ class CollectionManager(Operator):
active_laycol_name = view_layer.active_layer_collection.name
active_laycol_row_index = layer_collections[active_laycol_name]["row_index"]
cm.cm_list_index = active_laycol_row_index
- except:
+
+ except KeyError: # Master Collection isn't supported
cm.cm_list_index = -1
# check if in phantom mode and if it's still viable