diff --git a/lbry/schema/compat.py b/lbry/schema/compat.py index 7a4143dfa..e8db1422a 100644 --- a/lbry/schema/compat.py +++ b/lbry/schema/compat.py @@ -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)