8000 gh-135069: Fix exception message in encodings.idna module by danielhollas · Pull Request #135071 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-135069: Fix exception message in encodings.idna module #135071

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

Merged
merged 4 commits into from
Jul 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix exception message in encodings.idna module
Fix the 'Unsupported error handling' error message
in the encodings.idna.IncrementalDecoder class.
  • Loading branch information
danielhollas committed Jun 3, 2025
commit fe37cdced4ada4864e9c645729cf833ae6f1f5be
2 changes: 1 addition & 1 deletion Lib/encodings/idna.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def _buffer_encode(self, input, errors, final):
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
def _buffer_decode(self, input, errors, final):
if errors != 'strict':
raise UnicodeError("Unsupported error handling: {errors}")
raise UnicodeError(f"Unsupported error handling: {errors}")

if not input:
return ("", 0)
Expand Down
0