Skip to content

Commit

Permalink
More explicit typing and minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnatar committed Feb 5, 2023
1 parent e0d4979 commit ceedc4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/notifier/slack_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
1 change: 0 additions & 1 deletion tests/chia_log/handlers/test_wallet_added_coin_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ceedc4e

Please sign in to comment.