From 8394dcb6631d4846e9f26a43aba107651e9c1b44 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 10 Nov 2018 16:52:01 -0300 Subject: [PATCH] log and handle misformed claims from #1611 --- lbrynet/extras/wallet/resolve.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lbrynet/extras/wallet/resolve.py b/lbrynet/extras/wallet/resolve.py index 6f5fef78f..74971fb0d 100644 --- a/lbrynet/extras/wallet/resolve.py +++ b/lbrynet/extras/wallet/resolve.py @@ -415,6 +415,12 @@ def _decode_claim_result(claim): if not claim['signature_is_valid']: log.warning("lbry://%s#%s has an invalid signature", claim['name'], claim['claim_id']) + if 'value' not in claim: + log.warning('Got an invalid claim while parsing, please report: %s', claim) + claim['hex'] = None + claim['value'] = None + claim['error'] = "Failed to parse: missing value" + return claim try: decoded = smart_decode(claim['value']) claim_dict = decoded.claim_dict