generated from nhcarrigan/template
fix: suppress non-critical RetroAchievements fetch errors
Errors from the RA API are silently swallowed since the job retries every 10 minutes and failures are expected during brief outages.
This commit is contained in:
@@ -23,7 +23,6 @@ import {
|
||||
type MessageActionRowComponentBuilder,
|
||||
} from "discord.js";
|
||||
import { ids } from "../config/ids.js";
|
||||
import { logger } from "../utils/logger.js";
|
||||
import type { Amari } from "../interfaces/amari.js";
|
||||
|
||||
const username = "naomilgbt";
|
||||
@@ -117,9 +116,7 @@ export const checkRetroAchievements = async(
|
||||
flags: [ MessageFlags.IsComponentsV2 ],
|
||||
});
|
||||
}));
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
await logger.error("checkRetroAchievements module", error);
|
||||
}
|
||||
} catch {
|
||||
// Fetch errors from RetroAchievements are non-critical; the job retries every 10 minutes.
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user