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.")