Skip to content

Commit

Permalink
ssh: properly join chunks on python3
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Kuprieiev <[email protected]>
  • Loading branch information
efiop committed Sep 19, 2018
1 parent 2b1ea1e commit 8d5675a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/remote/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _exec(self, ssh, cmd):
stderr.close()

if stdout.channel.recv_exit_status() != 0:
err = ''.join(stderr_chunks)
err = b''.join(stderr_chunks).decode('utf-8')
msg = 'SSH command \'{}\' failed: {}'.format(cmd, err)
raise DvcException(msg)

Expand Down

0 comments on commit 8d5675a

Please sign in to comment.