diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-25 15:14:32 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-02-25 15:14:32 +0100 |
commit | 215fa17d04da01173fa54b5580b919f3a9bb9a1c (patch) | |
tree | d2efb873cd620ce007bfa0a36274acdbe72422b0 /lib/private/Avatar | |
parent | 8b7c8447a0e1eebc512cb58ea734542e03f29374 (diff) | |
download | nextcloud-server-215fa17d04da01173fa54b5580b919f3a9bb9a1c.tar.gz nextcloud-server-215fa17d04da01173fa54b5580b919f3a9bb9a1c.zip |
catch storage not available when deleting avatar
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Avatar')
-rw-r--r-- | lib/private/Avatar/AvatarManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Avatar/AvatarManager.php b/lib/private/Avatar/AvatarManager.php index c3afd8094c7..77138085dc9 100644 --- a/lib/private/Avatar/AvatarManager.php +++ b/lib/private/Avatar/AvatarManager.php @@ -43,6 +43,7 @@ use OCP\Accounts\PropertyDoesNotExistException; use OCP\Files\IAppData; use OCP\Files\NotFoundException; use OCP\Files\NotPermittedException; +use OCP\Files\StorageNotAvailableException; use OCP\IAvatar; use OCP\IAvatarManager; use OCP\IConfig; @@ -173,7 +174,7 @@ class AvatarManager implements IAvatarManager { $folder->delete(); } catch (NotFoundException $e) { $this->logger->debug("No cache for the user $userId. Ignoring avatar deletion"); - } catch (NotPermittedException $e) { + } catch (NotPermittedException | StorageNotAvailableException $e) { $this->logger->error("Unable to delete user avatars for $userId. gnoring avatar deletion"); } catch (NoUserException $e) { $this->logger->debug("User $userId not found. gnoring avatar deletion"); |