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>
pull/25011/head
Roeland Jago Douma 5 years ago
parent 7001f03645
commit 317118ef79
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      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;
}

Loading…
Cancel
Save