diff --git a/src/notifier/slack_notifier.py b/src/notifier/slack_notifier.py index 0c849ca..e693429 100644 --- a/src/notifier/slack_notifier.py +++ b/src/notifier/slack_notifier.py @@ -17,7 +17,7 @@ def __init__(self, title_prefix: str, config: ConfigView): logging.info("Initializing Slack notifier.") super().__init__(title_prefix, config) try: - credentials = config["credentials"].get() + credentials = config["credentials"].get(dict) self.webhook_url = credentials["webhook_url"] except KeyError as key: logging.error(f"Invalid config.yaml. Missing key: {key}") diff --git a/tests/chia_log/handlers/test_wallet_added_coin_handler.py b/tests/chia_log/handlers/test_wallet_added_coin_handler.py index 8f2dc63..d714ede 100644 --- a/tests/chia_log/handlers/test_wallet_added_coin_handler.py +++ b/tests/chia_log/handlers/test_wallet_added_coin_handler.py @@ -22,7 +22,6 @@ def setUp(self) -> None: self.example_logs_path = Path(__file__).resolve().parents[1] / "logs/wallet_added_coin" def tearDown(self) -> None: - # self.handler_config.clear() self.config.clear() def testConfig(self):