mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-03-09 05:13:08 +00:00
import
This commit is contained in:
parent
73bcd9cc66
commit
864ae0cc87
@ -1,3 +1,4 @@
|
||||
import json
|
||||
import logging
|
||||
from typing import TYPE_CHECKING, AsyncIterator, List, Optional
|
||||
from urllib.parse import urljoin, urlunparse
|
||||
@ -89,8 +90,6 @@ class HttpNodeApi(NodeApi):
|
||||
if not line:
|
||||
continue
|
||||
try:
|
||||
import json
|
||||
|
||||
event = json.loads(line)
|
||||
block = BlockSerializer.model_validate(event["block"])
|
||||
except (ValidationError, KeyError, json.JSONDecodeError) as error:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user