From 1f1b34863805f4954fbef3f163ef65268a66771a Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 19 Apr 2018 17:37:23 -0400 Subject: [PATCH] fix handling ancient non-decodable claims --- lbrynet/core/Wallet.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 64ab317de..a4fa5f4d8 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -413,11 +413,12 @@ class Wallet(object): @defer.inlineCallbacks def save_claim(self, claim_info): if 'value' in claim_info: - yield self.storage.save_claim(claim_info) + if claim_info['value']: + yield self.storage.save_claim(claim_info) else: - if 'certificate' in claim_info: + if 'certificate' in claim_info and claim_info['certificate']['value']: yield self.storage.save_claim(claim_info['certificate']) - if 'claim' in claim_info: + if 'claim' in claim_info and claim_info['claim']['value']: yield self.storage.save_claim(claim_info['claim']) @defer.inlineCallbacks