add some assert description

This commit is contained in:
dni ⚡
2023-04-04 07:35:20 +02:00
parent 1f6a961840
commit 5dbd9a9192
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class UnknownError(Exception):
class SparkWallet(Wallet):
def __init__(self):
assert settings.spark_url
assert settings.spark_url, "spark url does not exist"
self.url = settings.spark_url.replace("/rpc", "")
self.token = settings.spark_token
@@ -47,7 +47,7 @@ class SparkWallet(Wallet):
try:
async with httpx.AsyncClient() as client:
assert self.token
assert self.token, "spark wallet token does not exist"
r = await client.post(
self.url + "/rpc",
headers={"X-Access": self.token},