diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-07 14:32:26 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-01-07 14:25:15 +0000 |
commit | cb958df63a8edaebd917050c4c5562577179412c (patch) | |
tree | 350853f27c60dcf31fd1fc392a53560a0c8c3b59 | |
parent | 8295cc90d83fd605ce05f915d5c41a30879f42f3 (diff) | |
download | nextcloud-server-cb958df63a8edaebd917050c4c5562577179412c.tar.gz nextcloud-server-cb958df63a8edaebd917050c4c5562577179412c.zip |
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 <roeland@famdouma.nl>
-rw-r--r-- | lib/private/Encryption/Keys/Storage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Encryption/Keys/Storage.php b/lib/private/Encryption/Keys/Storage.php index 43a291b886c..c548caf4100 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; } |