From 0210604f07b0255e3dd4f694673d449c1138d7f1 Mon Sep 17 00:00:00 2001 From: Kurian Benoy Date: Thu, 16 May 2019 17:42:01 +0530 Subject: [PATCH] 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 --- dvc/remote/ssh/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dvc/remote/ssh/__init__.py b/dvc/remote/ssh/__init__.py index 836d5644e..a8cf29c38 100644 --- a/dvc/remote/ssh/__init__.py +++ b/dvc/remote/ssh/__init__.py @@ -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: