diff options
author | Phie <phie@phie.ovh> | 2019-08-17 18:03:09 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-08-17 18:03:09 +0300 |
commit | 352645fb829b5c2e5e53717c1a8dfcc0b05c804c (patch) | |
tree | 81f1e98cbd4c8b7ca641ca1936178f10bc39d124 | |
parent | 90b832fad562adf027b3917fb690ba3f674b73b7 (diff) |
don't crash when encryption exception
-rwxr-xr-x | lib/Controller/NoteController.php | 1 | ||||
-rw-r--r-- | lib/Misc/CacheManager.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php index 6038e16..122bb7f 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -539,6 +539,7 @@ } } } catch(\OCP\Files\NotFoundException $e) { + } catch(\OCP\Encryption\Exceptions\GenericEncryptionException $e){ } } diff --git a/lib/Misc/CacheManager.php b/lib/Misc/CacheManager.php index c070fcc..dc80b82 100644 --- a/lib/Misc/CacheManager.php +++ b/lib/Misc/CacheManager.php @@ -85,6 +85,8 @@ class CacheManager{ $this->addToCacheFullPath($node->getPath(), $meta, $meta['lastmodfile']); } catch(\PhpZip\Exception\ZipException $e){ + } catch(\OCP\Encryption\Exceptions\GenericEncryptionException $e){ + } } |