diff options
-rw-r--r-- | core/Command/User/Info.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php index abc8938ed54..36bfa0b6d5b 100644 --- a/core/Command/User/Info.php +++ b/core/Command/User/Info.php @@ -97,7 +97,11 @@ class Info extends Base { protected function getStorageInfo(IUser $user): array { \OC_Util::tearDownFS(); \OC_Util::setupFS($user->getUID()); - $storage = \OC_Helper::getStorageInfo('/'); + try { + $storage = \OC_Helper::getStorageInfo('/'); + } catch (\OCP\Files\NotFoundException $e) { + return []; + } return [ 'free' => $storage['free'], 'used' => $storage['used'], |