diff --git a/bingauto2.js b/bingauto2.js index d99205e..1af249e 100755 --- a/bingauto2.js +++ b/bingauto2.js @@ -155,8 +155,13 @@ module.exports = class BingAuto2 { } await sleep(5); - let point = await this.getText(this.mainPage, 'div.info-columns mee-rewards-counter-animation span'); - console.log('> Current point :', point); + try { + let point = await this.getText(this.mainPage, 'div.info-columns mee-rewards-counter-animation span'); + console.log('> Current point :', point); + } catch (e) { + console.log('Failed to get point'); + return 0; + } return parseInt(point.replace(',', '')); }