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>
This commit is contained in:
parent
8295cc90d8
commit
cb958df63a
|
@ -301,7 +301,7 @@ class Storage implements IStorage {
|
||||||
$fallback = false;
|
$fallback = false;
|
||||||
try {
|
try {
|
||||||
$clearData = $this->crypto->decrypt($data);
|
$clearData = $this->crypto->decrypt($data);
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
$fallback = true;
|
$fallback = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue