From cb958df63a8edaebd917050c4c5562577179412c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 7 Jan 2021 14:32:26 +0100 Subject: [PATCH] Catch throwable instead of exception The error that gets thrown can also be a type error etc. So we should properly catch the Throwable. Signed-off-by: Roeland Jago Douma --- lib/private/Encryption/Keys/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Encryption/Keys/Storage.php b/lib/private/Encryption/Keys/Storage.php index 43a291b886..c548caf410 100644 --- a/lib/private/Encryption/Keys/Storage.php +++ b/lib/private/Encryption/Keys/Storage.php @@ -301,7 +301,7 @@ class Storage implements IStorage { $fallback = false; try { $clearData = $this->crypto->decrypt($data); - } catch (\Exception $e) { + } catch (\Throwable $e) { $fallback = true; }