diff --git a/summarizer.py b/summarizer.py index 43499d3..868b8c4 100644 --- a/summarizer.py +++ b/summarizer.py @@ -199,7 +199,7 @@ def runner(): if DEBUG: print("\n".join(result_text)) else: - retry(slack_client.postSummary(title + "\n".join(result_text)), + retry(lambda: slack_client.postSummary(title + "\n".join(result_text)), exception=SlackApiError)