gh-135069: Fix exception message in encodings.idna module (#135071) · python/cpython@8dc3383 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 8dc3383

Browse files
authored
gh-135069: Fix exception message in encodings.idna module (#135071)
1 parent 8f8bdf2 commit 8dc3383

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/encodings/idna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def _buffer_encode(self, input, errors, final):
316316
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
317317
def _buffer_decode(self, input, errors, final):
318318
if errors != 'strict':
319-
raise UnicodeError("Unsupported error handling: {errors}")
319+
raise UnicodeError(f"Unsupported error handling: {errors}")
320320

321321
if not input:
322322
return ("", 0)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix the "Invalid error handling" exception in
2+
:class:`!encodings.idna.IncrementalDecoder` to correctly replace the
3+
'errors' parameter.

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.