Skip to content

Commit

Permalink
Don't crash if getting files from importer fails
Browse files Browse the repository at this point in the history
  • Loading branch information
robinp7720 committed Jan 23, 2024
1 parent b08a647 commit 455ac10
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/seedbox/Seedbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ export default class Seedbox {
while (toIndex.length > 0) {
let current = toIndex.pop();

const entries = await this.storageDriver.list(current);
let entries;

try {
entries = await this.storageDriver.list(current);
} catch (e) {
console.log(`Failed to list files from remote: ${this.name}`, e);
continue;
}

for (const entry of entries) {
switch (entry.type) {
Expand Down

0 comments on commit 455ac10

Please sign in to comment.