feat: iteration safe assets

This commit is contained in:
TrèsAbhi committed 2024-08-28 10:02:28 -05:00
1 parent be9b3a41a8
commit 0dd3e71353
1 file changed
+7 -1
+7 -1
View File
@@ -44,5 +44,11 @@ const methods = [
];
for (const method of methods) {
if (allTargets || targets?.includes(method.name)) await method();
if (allTargets || targets?.includes(method.name)) {
try {
await method();
} catch (error) {
console.warn(`Failed method ${method.name}; skipping...`, error);
}
}
}