From 0758b85179b3558338a905399bb7ebbb43c2be9e Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 29 Dec 2020 21:41:07 -0500 Subject: [PATCH] skip null args given to channel_ids in claim search --- lbry/wallet/server/db/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/server/db/reader.py b/lbry/wallet/server/db/reader.py index a3736750c..dc61dafe0 100644 --- a/lbry/wallet/server/db/reader.py +++ b/lbry/wallet/server/db/reader.py @@ -283,7 +283,7 @@ def claims_query(cols, for_count=False, **constraints) -> Tuple[str, Dict]: channel_ids = constraints.pop('channel_ids') if channel_ids: constraints['claim.channel_hash__in'] = { - unhexlify(cid)[::-1] for cid in channel_ids + unhexlify(cid)[::-1] for cid in channel_ids if cid } if 'not_channel_ids' in constraints: not_channel_ids = constraints.pop('not_channel_ids')