Skip to content

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

@hexagonrecursion hexagonrecursion deleted the format branch February 26, 2021 05:50
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