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
|
||||
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':
|
||||
|
|
Loading…
Reference in a new issue