handle invalid fee in old JSON claims

This commit is contained in:
Lex Berezhny 2019-07-06 19:58:02 -04:00
parent 4f208b6b31
commit 350e610f15

View file

@ -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':