diff --git a/src/dispatch/plugins/dispatch_slack/case/messages.py b/src/dispatch/plugins/dispatch_slack/case/messages.py index 5e2da2ee03d4..32eab6c4e775 100644 --- a/src/dispatch/plugins/dispatch_slack/case/messages.py +++ b/src/dispatch/plugins/dispatch_slack/case/messages.py @@ -68,7 +68,8 @@ def create_case_message(case: Case, channel_id: str) -> list[Block]: ] if case.signal_instances: - fields.append(f"*Variant* \n {case.signal_instances[0].signal.variant}") + if variant := case.signal_instances[0].signal.variant: + fields.append(f"*Variant* \n {variant}") blocks = [ Context(elements=[f"* {case.name} - Case Details*"]),