From f2e844c4767008472c7737ca7d7224cd9119f687 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 20 May 2020 18:02:47 -0400 Subject: [PATCH] ignore warnings when parsing old claims --- lbry/schema/compat.py | 4 ++++ 1 file changed, 4 insertions(+) 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)