summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-01-07 14:32:26 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-01-07 14:32:26 +0100
commit317118ef79cb2d907acc93b30a294a467f60080e (patch)
tree44eda701f062ba4514a80979ae1f75ac709887c7 /lib
parent7001f036453f5d79d3c44fdb82fdccf43c6e60db (diff)
downloadnextcloud-server-317118ef79cb2d907acc93b30a294a467f60080e.tar.gz
nextcloud-server-317118ef79cb2d907acc93b30a294a467f60080e.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>
Diffstat (limited to 'lib')
-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 a2b27de6b51..c70ebc15ec2 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;
}