diff --git a/src/imio/pm/wsclient/browser/vocabularies.py b/src/imio/pm/wsclient/browser/vocabularies.py index 1245571..22ef9c6 100644 --- a/src/imio/pm/wsclient/browser/vocabularies.py +++ b/src/imio/pm/wsclient/browser/vocabularies.py @@ -217,7 +217,7 @@ def __call__(self, context): # find categories for given meetingConfigId for configInfo in configInfos: if configInfo["id"] == meetingConfigId: - categories = hasattr(configInfo, 'categories') and configInfo.categories or () + categories = configInfo.get('categories', ()) break # if not categories is returned, it means that the meetingConfig does # not use categories...