From 58b789ed42f43a7bedd4ed39ee22e8e83ba7373f Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 5 Dec 2017 09:31:29 -0500 Subject: [PATCH] fix https://github.com/lbryio/lbry/issues/1013 --- CHANGELOG.md | 3 ++- lbrynet/core/Wallet.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f5f2b610..c3f7022a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,8 @@ at anytime. ### Fixed * Fixed unnecessarily verbose exchange rate error (https://github.com/lbryio/lbry/issues/984) - * Merged two sepereate dht test folders into one + * Merged two separate dht test folders into one + * Fixed value error due to a race condition when saving to the claim cache (https://github.com/lbryio/lbry/issues/1013) ### Deprecated * `channel_list_mine`, replaced with `channel_list` diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index cefde1f6d..5f2f20ac1 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -338,7 +338,7 @@ class SqliteStorage(MetaDataStorage): claim_tx_info = yield self.db.runQuery("SELECT name, txid, n FROM claim_ids " "WHERE claimId=?", (claim_id, )) response = None - if r and claim_tx_info: + if r and claim_tx_info and r[0]: rid, _, seq, claim_address, height, amount, supports, raw, chan_name, valid, ts = r[0] supports, amount = yield self._fix_malformed_supports_amount(rid, supports, amount) last_modified = int(ts)