diff --git a/lib/cli/dictionary_item_str_params.rs b/lib/cli/dictionary_item_str_params.rs index 0ef60ae2..9138b0b7 100644 --- a/lib/cli/dictionary_item_str_params.rs +++ b/lib/cli/dictionary_item_str_params.rs @@ -112,10 +112,15 @@ impl<'a> TryFrom> for DictionaryItemIdentifier { error, } })?; - let entity_addr = key.as_entity_addr().ok_or(CliError::InvalidArgument { - context: "dictionary item entity named key", - error: "not a entity-addr".to_string(), - })?; + + let entity_addr = if let Key::AddressableEntity(addr) = key { + addr + } else { + return Err(CliError::InvalidArgument { + context: "dictionary item entity named key", + error: "not a entity-addr".to_string(), + }); + }; Ok(DictionaryItemIdentifier::new_from_entity_info( entity_addr, dictionary_name.to_string(),