From fa1ebc995c7774feaabcbf0871a69eb05fd945ea Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Thu, 20 Jul 2017 12:35:27 -0400 Subject: [PATCH] fix if statement causing claim with certificate to not get cached --- lbrynet/core/Wallet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 619453740..7942fd598 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -776,14 +776,14 @@ class Wallet(object): raise UnknownOutpoint(results['outpoint']) raise Exception(results['error']) - # case where return value is {'certificate:{'txid', 'value',...}} - elif 'certificate' in results: + # case where return value is {'certificate':{'txid', 'value',...},...} + if 'certificate' in results: results['certificate'] = yield self._decode_and_cache_claim_result( results['certificate'], update_caches) - # case where return value is {'claim':{'txid','value',...}} - elif 'claim' in results: + # case where return value is {'claim':{'txid','value',...},...} + if 'claim' in results: results['claim'] = yield self._decode_and_cache_claim_result( results['claim'], update_caches)