From 8263111b6b39253df87a5dd9aefd931c09faffdb Mon Sep 17 00:00:00 2001 From: Yash Gupta Date: Fri, 13 Jan 2023 14:45:50 +0530 Subject: [PATCH] fix error message logging --- s4cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s4cmd.py b/s4cmd.py index bcdf982..f715fff 100755 --- a/s4cmd.py +++ b/s4cmd.py @@ -1439,7 +1439,7 @@ def download(self, source, target, mpi=None, pos=0, chunk=0, part=0): # retry here with original parameters (wrapped in # the task item), it would fail anyway tempfile_set(tempfile, None) - raise Failure('Download Failure: %s, Source: %s.' % (e.message, source)) + raise Failure('Download Failure: %s, Source: %s.' % (str(e), source)) @log_calls def copy(self, source, target, mpi=None, pos=0, chunk=0, part=0, delete_source=False):