mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
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
7001f03645
commit
317118ef79
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ class Storage implements IStorage {
|
|||
$fallback = false;
|
||||
try {
|
||||
$clearData = $this->crypto->decrypt($data);
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
$fallback = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue