mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 21:17:15 +03:00
Fix other get missing throw
This commit is contained in:
@@ -46,7 +46,11 @@ async function getTraced<T>(fetchFromDB: () => Promise<T>, key: string): Promise
|
||||
endTime: Date.now()
|
||||
};
|
||||
}
|
||||
} catch (e) { } //eslint-disable-line no-empty
|
||||
} catch (e) {
|
||||
if (e instanceof TooManyActiveConnectionsError) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
const dbStartTime = Date.now();
|
||||
const data = await fetchFromDB();
|
||||
|
||||
Reference in New Issue
Block a user