From 7294befad978ce9de29ad4bf23ec98d08c891afd Mon Sep 17 00:00:00 2001 From: Jon Schewe Date: Wed, 8 Jul 2020 07:52:04 -0500 Subject: [PATCH] Remove try/catch that is hiding errors The try/catch here was hiding timeouts fetching the test files. This logic appears to be for handling a very old version of S3. They should not be needed anymore. Fixes duplicati/duplicati#4225 --- Duplicati/Library/Backend/S3/S3Backend.cs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/Duplicati/Library/Backend/S3/S3Backend.cs b/Duplicati/Library/Backend/S3/S3Backend.cs index 9515dfcec..604a89492 100644 --- a/Duplicati/Library/Backend/S3/S3Backend.cs +++ b/Duplicati/Library/Backend/S3/S3Backend.cs @@ -353,26 +353,7 @@ namespace Duplicati.Library.Backend public void Get(string remotename, System.IO.Stream output) { - try - { - Connection.GetFileStream(m_bucket, GetFullKey(remotename), output); - } - catch - { - //This is a fix for the S3 backend prior to beta 3, where the filenames had a slash prefixed - try - { - if (!remotename.StartsWith("/", StringComparison.Ordinal)) - Connection.GetFileStream(m_bucket, GetFullKey("/" + remotename), output); - return; - } - catch - { - } - - //Throw original error - throw; - } + Connection.GetFileStream(m_bucket, GetFullKey(remotename), output); } public void Delete(string remotename)