continue on internal error (#3728)

This commit is contained in:
pablonyx 2025-01-28 12:19:07 -08:00 committed by GitHub
parent 8d62b992ef
commit 42d6d935ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,8 +104,11 @@ def make_slack_api_rate_limited(
f"Slack call rate limited, retrying after {retry_after} seconds. Exception: {e}"
)
time.sleep(retry_after)
elif error in ["already_reacted", "no_reaction"]:
# The response isn't used for reactions, this is basically just a pass
elif error in ["already_reacted", "no_reaction", "internal_error"]:
# Log internal_error and return the response instead of failing
logger.warning(
f"Slack call encountered '{error}', skipping and continuing..."
)
return e.response
else:
# Raise the error for non-transient errors