remote: ssh: fix error message (#2002)

* ssh: fix exception reporting during upload

* ssh:Make exception message in PEP8 format

* Update dvc/remote/ssh/__init__.py

Co-Authored-By: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Kurian Benoy
2019-05-16 15:12:01 +03:00
committed by Ruslan Kuprieiev
co-authored by Ruslan Kuprieiev
parent 1119ad9ed6
commit 0210604f07
+2 -5
View File
@@ -234,13 +234,10 @@ class RemoteSSH(RemoteBASE):
)
except Exception:
logger.exception(
"failed to upload '{host}/{path}' to '{dest}'".format(
host=from_info.host,
path=from_info.path,
dest=to_info.path,
"failed to upload '{}' to '{}'".format(
from_info, to_info
)
)
pass
def list_cache_paths(self):
with self.ssh(self.path_info) as ssh: