Skip to content

Commit 801e98b

Browse files
committed
handle error
1 parent 371b7e5 commit 801e98b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ const main = async () => {
4444
for (const dist of dists) {
4545
if (dist.url.includes('vendor')) continue;
4646
logger.info('Downloading event: ' + dist.event);
47-
await handle(dist.url, `events/${dist.game}/${dist.event}`);
47+
try {
48+
await handle(dist.url, `events/${dist.game}/${dist.event}`);
49+
} catch (e) {
50+
logger.error(e);
51+
}
4852
}
4953

5054
// Sync to Samba Share

0 commit comments

Comments
 (0)