dev@locazia: add debug print
This commit is contained in:
1 parent
7479e442e7
commit
395e107aa9
1 file changed
+7
-1
@@ -4,6 +4,7 @@ from hashlib import sha256
|
|||||||
from base58 import b58encode
|
from base58 import b58encode
|
||||||
from httpx import AsyncClient
|
from httpx import AsyncClient
|
||||||
|
|
||||||
|
from app.core.logger import make_log
|
||||||
from app.core._config import PROJECT_HOST
|
from app.core._config import PROJECT_HOST
|
||||||
from app.core._crypto.signer import Signer
|
from app.core._crypto.signer import Signer
|
||||||
from app.core._secrets import hot_seed
|
from app.core._secrets import hot_seed
|
||||||
@@ -54,7 +55,12 @@ async def create_metadata_for_item(
|
|||||||
'X-Message-Hash': metadata_hash_b58,
|
'X-Message-Hash': metadata_hash_b58,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
assert response.status_code == 200
|
try:
|
||||||
|
assert response.status_code == 200
|
||||||
|
except BaseException as e:
|
||||||
|
make_log("create_metadata_for_item", f"Res: {response.text}, Error: {e}", level='error')
|
||||||
|
raise e
|
||||||
|
|
||||||
response_json = response.json()
|
response_json = response.json()
|
||||||
metadata_sha256 = response_json['content_sha256']
|
metadata_sha256 = response_json['content_sha256']
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user