Skip to content

Commit 9715048

Browse files
authored
Merge pull request #1 from rullzer/fix/error_on_storagelevel
Catch throwable as well when setting up stroage
2 parents 4bdbe75 + ded3bd2 commit 9715048

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<category>tools</category>
1313
<bugs>https://github.com/rullzer/sharelisting/issues</bugs>
1414
<dependencies>
15-
<nextcloud min-version="13" max-version="15" />
15+
<nextcloud min-version="14" max-version="16" />
1616
</dependencies>
1717

1818
<commands>

lib/Command/ListShares.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ private function do(string $userId, int $filter, string $path = null): \Iterator
148148
$userFolder = $this->rootFolder->getUserFolder($share->getShareOwner());
149149
} catch (NoUserException $e) {
150150
return false;
151+
} catch (\Throwable $e) {
152+
return false;
151153
}
152154
$nodes = $userFolder->getById($share->getNodeId());
153155

0 commit comments

Comments
 (0)