Skip to content

Commit 48e9293

Browse files
Update Objects/unicodeobject.c
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent a0dcf05 commit 48e9293

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/unicodeobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9129,8 +9129,9 @@ _PyUnicode_EncodeCharmap(PyObject *unicode,
91299129
Py_UCS4 ch = PyUnicode_READ(kind, data, inpos);
91309130
/* try to encode it */
91319131
charmapencode_result x = charmapencode_output(ch, mapping, writer, &respos);
9132-
if (x==enc_EXCEPTION) /* error */
9132+
if (x==enc_EXCEPTION) { /* error */
91339133
goto onError;
9134+
}
91349135
if (x==enc_FAILED) { /* unencodable character */
91359136
if (charmap_encoding_error(unicode, &inpos, mapping,
91369137
&exc,

0 commit comments

Comments
 (0)