Skip to content

Commit

Permalink
Update src/dispatch/plugins/dispatch_slack/service.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Schroth <[email protected]>
  • Loading branch information
kevgliss and jschroth authored Jun 27, 2024
1 parent 5006734 commit e02ef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/plugins/dispatch_slack/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit e02ef30

Please sign in to comment.