From 7cdd986bde36817cc6e3568c3bb6283bd1d61c38 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Thu, 4 Jul 2024 00:55:58 -0700 Subject: [PATCH] Remove email file count limit (#552) --- skyvern/forge/sdk/workflow/models/block.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.py index 935024e8..e00a03f2 100644 --- a/skyvern/forge/sdk/workflow/models/block.py +++ b/skyvern/forge/sdk/workflow/models/block.py @@ -797,9 +797,6 @@ class SendEmailBlock(Block): # if the file path is a directory, add all files in the directory, skip directories, limit to 10 files if os.path.exists(path) and os.path.isdir(path): - if len(os.listdir(path)) > 10: - LOG.warning("SendEmailBlock: Too many files in the directory, not attaching to email") - continue for file in os.listdir(path): if os.path.isdir(os.path.join(path, file)): LOG.warning("SendEmailBlock: Skipping directory", file=file)