From 8b42475d59de2234d5f0a30e94938fa8f0593cd1 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 21 Sep 2021 12:55:14 -0400 Subject: [PATCH] fix filtering error upon abandon --- lbry/wallet/server/leveldb.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lbry/wallet/server/leveldb.py b/lbry/wallet/server/leveldb.py index 3853fe7f3..ce27501d6 100644 --- a/lbry/wallet/server/leveldb.py +++ b/lbry/wallet/server/leveldb.py @@ -491,10 +491,11 @@ class LevelDB: reposts = self.get_reposts_in_channel(reposter_channel_hash) for repost in reposts: txo = self.get_claim_txo(repost) - if txo.normalized_name.startswith('@'): - channels[repost] = reposter_channel_hash - else: - streams[repost] = reposter_channel_hash + if txo: + if txo.normalized_name.startswith('@'): + channels[repost] = reposter_channel_hash + else: + streams[repost] = reposter_channel_hash return streams, channels def get_reposts_in_channel(self, channel_hash):