From b4eaef2ab52de34ad6d9d1655ea6db31196dc779 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:36:07 +0200 Subject: [PATCH] make mypy happy --- cashu/wallet/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index 5837b1fd..07c8de66 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -174,9 +174,9 @@ async def _load_mint_keys(self, keyset_id: Optional[str] = None) -> None: # get current keyset keyset = await self._get_keys(self.url) - assert len(keyset.public_keys) > 0, "did not receive keys from mint." assert keyset assert keyset.id + assert len(keyset.public_keys) > 0, "did not receive keys from mint." if keyset_id and keyset_id != keyset.id: # NOTE: Because of the upcoming change of how to calculate keyset ids