From 9f034d9c4cd2c807615db5357dd5d699d3554cb6 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 22 Aug 2024 19:54:10 +0000 Subject: [PATCH] fix confusing logmsg for zerobyte files --- copyparty/httpcli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 5432dcd3..b6fd11d3 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3266,7 +3266,8 @@ class HttpCli(object): raise Exception("not found in registry") self.pipes.set(req_path, job) except Exception as ex: - self.log("will not pipe [%s]; %s" % (ap_data, ex), 6) + if getattr(ex, "errno", 0) != errno.ENOENT: + self.log("will not pipe [%s]; %s" % (ap_data, ex), 6) ptop = None #