forked from LBRYCommunity/lbry-sdk
handle invalid fee in old JSON claims
This commit is contained in:
parent
4f208b6b31
commit
350e610f15
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def from_old_json_schema(claim, payload: bytes):
|
||||||
pass
|
pass
|
||||||
if value.get('nsfw', False):
|
if value.get('nsfw', False):
|
||||||
stream.tags.append('mature')
|
stream.tags.append('mature')
|
||||||
if "fee" in value:
|
if "fee" in value and isinstance(value['fee'], dict):
|
||||||
fee = value["fee"]
|
fee = value["fee"]
|
||||||
currency = list(fee.keys())[0]
|
currency = list(fee.keys())[0]
|
||||||
if currency == 'LBC':
|
if currency == 'LBC':
|
||||||
|
|
Loading…
Reference in a new issue