ignore warnings when parsing old claims

This commit is contained in:
Lex Berezhny 2020-05-20 18:02:47 -04:00
parent 83f7eab0e7
commit f2e844c476

View file

@ -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)