Actions
Idea #23003
openVocabulary helper convert_to_labels raises strict exception on undefined properties
Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Start date:
Due date:
Story points:
-
Description
Collections contain the sticky property 'responsible_person_uuid', amongst others. I noticed that the convenient function convert_to_labels does not like that. So in order to convert these properties to labels I need to clean this up first,
arvados.vocabulary.VocabularyKeyError: key 'responsible_person_uuid' not found in vocabulary
Is this intended? Any suggestion how to solve this?
Updated by Brett Smith 9 months ago
- Category set to SDKs
Moritz,
The current function is explicitly programmed to do this, yes. We could consider adding an arguments that specifies how to handle unknown keys, akin to the errors argument of bytes.decode.
Updated by Brett Smith 7 months ago
- Subject changed from Vocabulary helper convert_to_labels breaks on presence of not vocabulary controlled properties to Vocabulary helper convert_to_labels raises strict exception on undefined properties
Actions