We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab96d00 commit 0a9fc1dCopy full SHA for 0a9fc1d
1 file changed
src/robusta/integrations/slack/sender.py
@@ -310,8 +310,10 @@ def __send_blocks_to_slack(
310
status: FindingStatus,
311
channel: str,
312
thread_ts: str = None,
313
- output_blocks: List[SlackBlock] = [],
+ output_blocks: Optional[List[SlackBlock]] = None
314
) -> str:
315
+ if output_blocks is None:
316
+ output_blocks = []
317
file_blocks = add_pngs_for_all_svgs([b for b in report_blocks if isinstance(b, FileBlock)])
318
if not sink_params.send_svg:
319
file_blocks = [b for b in file_blocks if not b.filename.endswith(".svg")]
0 commit comments