Fixed to work with utils_refactor

This commit is contained in:
2021-10-06 15:55:53 -04:00
parent 0a1d2b3e0e
commit 41468d5467
2 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
import logging
from aprsd import utils as aprsd_utils
from slack_sdk import WebClient
import aprsd_slack_plugin
@@ -46,7 +45,7 @@ class SlackPluginBase:
# signing_secret = self.config["slack"]["signing_secret"]
try:
aprsd_utils.check_config_option(self.config, ["services", "slack", "bot_token"])
self.config.exists(["services", "slack", "bot_token"])
except Exception as ex:
LOG.error("Failed to find config slack:bot_token {}".format(ex))
return "No slack bot_token found"