Skip to content

Commit

Permalink
🔨 fix unhandled rejection error
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 21, 2022
1 parent 4a6de59 commit 0dbc6eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/classes/MyHandler/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ export default class MyHandler extends Handler {
this.botSteamID = this.bot.client.steamID;

// Get Premium info from backpack.tf
void this.getBPTFAccountInfo();
this.getBPTFAccountInfo().catch(() => {
// Ignore error
});

if (this.isCraftingManual === false) {
// Smelt / combine metal if needed
Expand Down Expand Up @@ -2493,7 +2495,9 @@ export default class MyHandler extends Handler {
clearTimeout(this.retryRequest);

this.retryRequest = setTimeout(() => {
void this.getBPTFAccountInfo();
void this.getBPTFAccountInfo().catch(() => {
// ignore error
});
}, 5 * 60 * 1000);
return reject();
}
Expand Down

0 comments on commit 0dbc6eb

Please sign in to comment.