diff --git a/cashu/core/base.py b/cashu/core/base.py index c2e88e4..11eb042 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -261,7 +261,9 @@ class WalletKeyset: return cls( id=row["id"], - public_keys=deserialize(str(row["public_keys"])), + public_keys=deserialize(str(row["public_keys"])) + if dict(row).get("public_keys") + else {}, mint_url=row["mint_url"], valid_from=row["valid_from"], valid_to=row["valid_to"], diff --git a/requirements.txt b/requirements.txt index 5e8c44a..5204a4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,8 @@ environs==9.5.0 ; python_version >= "3.7" and python_version < "4.0" exceptiongroup==1.1.0 ; python_version >= "3.7" and python_version < "3.11" fastapi==0.83.0 ; python_version >= "3.7" and python_version < "4.0" h11==0.12.0 ; python_version >= "3.7" and python_version < "4.0" +httpcore==0.15.0 ; python_version >= "3.7" and python_version < "4.0" +httpx==0.23.0 ; python_version >= "3.7" and python_version < "4.0" idna==3.4 ; python_version >= "3.7" and python_version < "4" importlib-metadata==5.2.0 ; python_version >= "3.7" and python_version < "4.0" iniconfig==2.0.0 ; python_version >= "3.7" and python_version < "4.0" @@ -31,6 +33,7 @@ python-bitcoinlib==0.11.2 ; python_version >= "3.7" and python_version < "4.0" python-dotenv==0.21.1 ; python_version >= "3.7" and python_version < "4.0" represent==1.6.0.post0 ; python_version >= "3.7" and python_version < "4.0" requests==2.28.2 ; python_version >= "3.7" and python_version < "4" +rfc3986[idna2008]==1.5.0 ; python_version >= "3.7" and python_version < "4.0" secp256k1==0.14.0 ; python_version >= "3.7" and python_version < "4.0" setuptools==65.7.0 ; python_version >= "3.7" and python_version < "4.0" six==1.16.0 ; python_version >= "3.7" and python_version < "4.0"