Skip to content

Automate browser based workflows with AI

Remove email file count limit (#552)

Kerem Yilmaz7cdd986bde36
diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.py
index 935024e87..e00a03f29 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)