diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-07 14:32:26 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-07 14:32:26 +0100 |
commit | 317118ef79cb2d907acc93b30a294a467f60080e (patch) | |
tree | 44eda701f062ba4514a80979ae1f75ac709887c7 /lib | |
parent | 7001f036453f5d79d3c44fdb82fdccf43c6e60db (diff) | |
download | nextcloud-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.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 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; } |