Fix exception on delete
This commit is contained in:
parent
8486d61764
commit
46faf6d3ca
1 changed files with 6 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace OC\Share20;
|
||||
|
||||
use OCP\Files\IRootFolder;
|
||||
use OCP\Files\NotFoundException;
|
||||
use OCP\IUserManager;
|
||||
use OCP\Share\IManager;
|
||||
use OCP\Share\IProviderFactory;
|
||||
|
@ -795,7 +796,11 @@ class Manager implements IManager {
|
|||
if ($share->getExpirationDate() !== null &&
|
||||
$share->getExpirationDate() <= $today
|
||||
) {
|
||||
$this->deleteShare($share);
|
||||
try {
|
||||
$this->deleteShare($share);
|
||||
} catch (NotFoundException $e) {
|
||||
//Ignore since this basically means the share is deleted
|
||||
}
|
||||
continue;
|
||||
}
|
||||
$added++;
|
||||
|
|
Loading…
Reference in a new issue