From 350e610f156df8c570fc530ccf5b973aa30e8a86 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 6 Jul 2019 19:58:02 -0400 Subject: [PATCH] handle invalid fee in old JSON claims --- lbry/lbry/schema/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/lbry/schema/compat.py b/lbry/lbry/schema/compat.py index 7546d6881..7a4143dfa 100644 --- a/lbry/lbry/schema/compat.py +++ b/lbry/lbry/schema/compat.py @@ -36,7 +36,7 @@ def from_old_json_schema(claim, payload: bytes): pass if value.get('nsfw', False): stream.tags.append('mature') - if "fee" in value: + if "fee" in value and isinstance(value['fee'], dict): fee = value["fee"] currency = list(fee.keys())[0] if currency == 'LBC':