Skip to content

Commit

Permalink
fix: quiet cached keys warnings (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamex committed Jun 1, 2023
1 parent 5ac2c79 commit 35f71f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ape_accounts/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ def address(self) -> AddressType:
def __key(self) -> HexBytes:
if self.__cached_key is not None:
if not self.locked:
click.echo(f"Using cached key for '{self.alias}'")
logger.warning("Using cached key for %s",self.alias)
return self.__cached_key
else:
self.__cached_key = None
self.__cached_key = None

passphrase = self._prompt_for_passphrase(default="")
key = self.__decrypt_keyfile(passphrase)
Expand Down

0 comments on commit 35f71f7

Please sign in to comment.