itizawa 5 lat temu
rodzic
commit
6d4f728d71
1 zmienionych plików z 2 dodań i 7 usunięć
  1. 2 7
      src/server/service/slackbot.js

+ 2 - 7
src/server/service/slackbot.js

@@ -84,13 +84,8 @@ class SlackBotService extends S2sMessageHandlable {
   async sendAuthTest() {
     this.isConnectedToSlack = false;
 
-    try {
-      await this.client.api.test();
-      this.isConnectedToSlack = true;
-    }
-    catch (e) {
-      logger.error('Failed to connect to slack: ', e.message);
-    }
+    await this.client.api.test();
+    this.isConnectedToSlack = true;
   }
 
   notCommand(body) {