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 error formatting #463

Merged
merged 1 commit into from
Feb 26, 2021
Merged

Fix error formatting #463

merged 1 commit into from
Feb 26, 2021

Conversation

hexagonrecursion
Copy link
Contributor

While working on adding hypothesis-powered tests hexagonrecursion@f286bd2 I have noticed several places where you use the wrong formatting syntax when throwing an exception:

>>> ValueError("%s exceeds max_str_len(%s)", 10, 5)
ValueError('%s exceeds max_str_len(%s)', 10, 5)
>>> ValueError("%s exceeds max_str_len(%s)" % (10, 5))
ValueError('10 exceeds max_str_len(5)')

@methane
Copy link
Member

methane commented Feb 26, 2021

thanks

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.

None yet

2 participants