summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-01-07 14:32:26 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-01-07 14:25:15 +0000
commitcb958df63a8edaebd917050c4c5562577179412c (patch)
tree350853f27c60dcf31fd1fc392a53560a0c8c3b59
parent8295cc90d83fd605ce05f915d5c41a30879f42f3 (diff)
downloadnextcloud-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.php2
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;
}