From e02ef3037a5fd6fd917ba9bfde6f988350cbb264 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Thu, 27 Jun 2024 08:18:06 -0700 Subject: [PATCH] Update src/dispatch/plugins/dispatch_slack/service.py Co-authored-by: Jason Schroth --- src/dispatch/plugins/dispatch_slack/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_slack/service.py b/src/dispatch/plugins/dispatch_slack/service.py index df90a53c8949..252b2ace4fa1 100644 --- a/src/dispatch/plugins/dispatch_slack/service.py +++ b/src/dispatch/plugins/dispatch_slack/service.py @@ -24,7 +24,7 @@ class SlackRetryException(Exception): def __init__(self, wait_time: int = None): self.wait_time = wait_time - if wait_time is None: + if wait_time: super().__init__(f"Retrying slack call in {wait_time} seconds.") else: super().__init__("Retrying slack call.")