diff --git a/python/ray/operator/operator_utils.py b/python/ray/operator/operator_utils.py index 08afda94f..5d51baebb 100644 --- a/python/ray/operator/operator_utils.py +++ b/python/ray/operator/operator_utils.py @@ -95,4 +95,7 @@ def get_cluster_owner_reference( def translate(configuration: Dict[str, Any], dictionary: Dict[str, str]) -> Dict[str, Any]: - return {dictionary[field]: configuration[field] for field in dictionary} + return { + dictionary[field]: configuration[field] + for field in dictionary if field in configuration + }