Script gen support - send email with file attachments (#3551)

This commit is contained in:
Shuchang Zheng
2025-09-29 18:37:42 -07:00
committed by GitHub
parent 8fd5db7d12
commit 7afb5190a6
5 changed files with 50 additions and 13 deletions

View File

@@ -166,7 +166,9 @@ class WorkflowRunContext:
return
self.blocks_metadata[label] = metadata
def get_block_metadata(self, label: str) -> BlockMetadata:
def get_block_metadata(self, label: str | None) -> BlockMetadata:
if label is None:
label = ""
return self.blocks_metadata.get(label, BlockMetadata())
def get_original_secret_value_or_none(self, secret_id_or_value: Any) -> Any: