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

Use "raise from" in except blocks #415

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Use "raise from" in except blocks #415

merged 1 commit into from
Sep 12, 2023

Conversation

garrison
Copy link
Member

This is something that pylint should have caught if we were using it (#146). This way, the tracebacks will say

The above exception was the direct cause of the following exception:

rather than

During handling of the above exception, another exception occurred:

This is something that pylint should have caught if we were using it
(#146).  This way, the tracebacks will say

> The above exception was the direct cause of the following exception:

rather than

> During handling of the above exception, another exception occurred:
@garrison garrison added the cutting QPD-based circuit cutting code label Sep 12, 2023
@garrison garrison merged commit d410952 into main Sep 12, 2023
@garrison garrison deleted the raise-exceptions-from branch September 12, 2023 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cutting QPD-based circuit cutting code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants