File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ class CommandRunner(object):
96
96
return
97
97
98
98
stdout , stderr = remote_proc .communicate ()
99
- stdout = stdout .decode ('utf-8' )
100
- stderr = stderr .decode ('utf-8' )
99
+ stdout = stdout .decode (encoding = 'utf-8' , errors = 'replace ' )
100
+ stderr = stderr .decode (encoding = 'utf-8' , errors = 'replace ' )
101
101
102
102
# Print stdout to screen
103
103
print (stdout , end = '' )
@@ -140,8 +140,8 @@ class CommandRunner(object):
140
140
if self .verbose :
141
141
print (sources , file = sys .stderr )
142
142
stdout , stderr = rsync_proc .communicate (sources .encode ('utf-8' ))
143
- stdout = stdout .decode ('utf-8' )
144
- stderr = stderr .decode ('utf-8' )
143
+ stdout = stdout .decode (encoding = 'utf-8' , errors = 'replace ' )
144
+ stderr = stderr .decode (encoding = 'utf-8' , errors = 'replace ' )
145
145
146
146
# Print stdout to screen
147
147
print (stdout , end = '' )
You can’t perform that action at this time.
0 commit comments