Skip to content

Commit 045813d

Browse files
Switch from surrogateescape to replace to handle utf-8 error (#62632)
Co-authored-by: AutomationDev85 <AutomationDev85>
1 parent 72af427 commit 045813d

File tree

1 file changed

+1
-1
lines changed
  • providers/docker/src/airflow/providers/docker/operators

1 file changed

+1
-1
lines changed

providers/docker/src/airflow/providers/docker/operators/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def stringify(line: str | bytes):
5353
"""Make sure string is returned even if bytes are passed. Docker stream can return bytes."""
5454
decode_method = getattr(line, "decode", None)
5555
if decode_method:
56-
return decode_method(encoding="utf-8", errors="surrogateescape")
56+
return decode_method(encoding="utf-8", errors="replace")
5757
return line
5858

5959

0 commit comments

Comments
 (0)