mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 07:09:57 +03:00
fix: bms-table-sync shouldn't crash if any provided table is invalid
This commit is contained in:
@@ -161,8 +161,12 @@ export async function UpdateTable(tableInfo: BMSTableInfo) {
|
||||
|
||||
export async function SyncBMSTables() {
|
||||
for (const table of BMS_TABLES) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await UpdateTable(table);
|
||||
try {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await UpdateTable(table);
|
||||
} catch (err) {
|
||||
logger.error(`Failed to update table ${table.name} (${table.url}).`, { err });
|
||||
}
|
||||
}
|
||||
|
||||
logger.info(`Re-initialising folder-chart-lookup, since changes may have been made.`);
|
||||
|
||||
Reference in New Issue
Block a user