diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php index abc8938ed5496..36bfa0b6d5b1f 100644 --- a/core/Command/User/Info.php +++ b/core/Command/User/Info.php @@ -97,7 +97,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int 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'],