Skip to content

Conversation

@thomas-a-neil
Copy link
Contributor

This reverts commit f4f9792.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

outcome = retry_state.outcome.exception()
print(
f"Retrying... Attempt {retry_state.attempt_number} after {retry_state.next_action.sleep}s due to: {outcome}"
f"Retrying... Attempt {retry_state.attempt_number} after {retry_state.next_action.sleep}s due to: {retry_state.outcome.result()}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Logging Function Fails During Exception Retry

The log_retry_attempt function now directly calls retry_state.outcome.result() without exception handling. When a retry is due to an exception, calling result() will raise that exception, causing the logging function to crash and potentially disrupt the retry mechanism. The previous implementation safely retrieved either the result or the exception.

Fix in Cursor Fix in Web

@cmishra cmishra merged commit cbaccc1 into main Sep 17, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants