From 7c9edbff32447eba76c3ed1c6a2e6210e1f7212a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 13 Jul 2023 15:37:42 +0200 Subject: handle more exceptions in AmazonS3::fopen Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_external/lib/Lib') diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 5b92c9a4105..3d982bdab02 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -497,7 +497,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { try { return $this->readObject($path); - } catch (S3Exception $e) { + } catch (\Exception $e) { $this->logger->error($e->getMessage(), [ 'app' => 'files_external', 'exception' => $e, -- cgit v1.2.3