Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: resaise exceptions #1239

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

ramonpetgrave64
Copy link
Collaborator

Fix a bug where the exception after github retries was lost. Before we would just see:

...
RuntimeError: No active exception to reraise

But now the original exception is properly re-eaised.

Testing

Added a unit test

@ramonpetgrave64 ramonpetgrave64 merged commit 4b53776 into master Aug 31, 2023
4 checks passed
@ramonpetgrave64 ramonpetgrave64 deleted the ramonpetgrave64-github-exception-handling branch August 31, 2023 16:56
chandanchowdhury pushed a commit to juju4/cartography that referenced this pull request Jun 26, 2024
Fix a bug where the exception after github retries was lost. Before we
would just see:

```
...
RuntimeError: No active exception to reraise
```

But now the original exception is properly re-eaised.

### Testing

Added a unit test
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.

2 participants