diff --git a/lib/private/Encryption/Keys/Storage.php b/lib/private/Encryption/Keys/Storage.php
index a2b27de6b5146e82b76902f60f27f356743df0db..c70ebc15ec2e43b073b5ad246737a25ccb574f38 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;
 						}