We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017b6b2 commit ea3f9f6Copy full SHA for ea3f9f6
app/services/Bans.ts
@@ -23,11 +23,13 @@ export class Bans extends Service {
23
private lastUpdate = 0;
24
25
async updateCache(): Promise<void> {
26
- const res = await axios.get<Array<MetaBan>>("http://g2.metastruct.net/bans");
27
- if (res.status === 200) {
28
- this.banCache = res.data;
29
- }
30
- this.lastUpdate = Date.now();
+ try {
+ const res = await axios.get<Array<MetaBan>>("http://g2.metastruct.net/bans");
+ if (res.status === 200) {
+ this.banCache = res.data;
+ }
31
+ this.lastUpdate = Date.now();
32
+ } catch {}
33
}
34
35
async getBan(steamid: string, force?: boolean): Promise<MetaBan | undefined> {
0 commit comments