Skip to content

Commit 0a9fc1d

Browse files
committed
bugfix slack sender
1 parent ab96d00 commit 0a9fc1d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/robusta/integrations/slack/sender.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ def __send_blocks_to_slack(
310310
status: FindingStatus,
311311
channel: str,
312312
thread_ts: str = None,
313-
output_blocks: List[SlackBlock] = [],
313+
output_blocks: Optional[List[SlackBlock]] = None
314314
) -> str:
315+
if output_blocks is None:
316+
output_blocks = []
315317
file_blocks = add_pngs_for_all_svgs([b for b in report_blocks if isinstance(b, FileBlock)])
316318
if not sink_params.send_svg:
317319
file_blocks = [b for b in file_blocks if not b.filename.endswith(".svg")]

0 commit comments

Comments
 (0)