Skip to content

Commit fe37cdc

Browse files
committed
Fix exception message in encodings.idna module
Fix the 'Unsupported error handling' error message in the encodings.idna.IncrementalDecoder class.
1 parent 3612d8f commit fe37cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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)

0 commit comments

Comments
 (0)