ignore warnings when parsing old claims
This commit is contained in:
parent
83f7eab0e7
commit
f2e844c476
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import json
|
||||
import warnings
|
||||
from decimal import Decimal
|
||||
|
||||
from google.protobuf.message import DecodeError
|
||||
|
@ -8,6 +9,9 @@ from lbry.schema.types.v1.certificate_pb2 import KeyType
|
|||
from lbry.schema.types.v1.fee_pb2 import Fee as FeeMessage
|
||||
|
||||
|
||||
warnings.filterwarnings("ignore", category=RuntimeWarning, module="lbry.schema.compat")
|
||||
|
||||
|
||||
def from_old_json_schema(claim, payload: bytes):
|
||||
try:
|
||||
value = json.loads(payload)
|
||||
|
|
Loading…
Reference in a new issue