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

Fix typo in exception handler #72

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

cjwatson
Copy link
Contributor

No description provided.

Comment on lines 576 to +578
except TypeError:
raise TypeError(_u("Failed to parse %r, got %r")
% (line, sys.exec_info[1]))
% (line, sys.exc_info()[1]))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could probably replace this with:

except TypeError as e:
    raise TypeError(_u("Failed to parse %r, got %r") % (line, e)))

but this is obviously also correct and what was there didn't work, so lets just make the smaller fix

@mtreinish mtreinish merged commit f64ee6b into testing-cabal:master Nov 17, 2023
6 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.

2 participants