Merge pull request #3367 from belikor/fix-search-claim-id

fix error when using `--claim_id` with `lbrynet claim search`
This commit is contained in:
Lex Berezhny 2021-07-23 10:08:57 -04:00 committed by GitHub
commit 1ec74a89e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2479,6 +2479,8 @@ class Daemon(metaclass=JSONRPCServerType):
Returns: {Paginated[Output]}
"""
wallet = self.wallet_manager.get_wallet_or_default(kwargs.pop('wallet_id', None))
if "claim_ids" in kwargs and not kwargs["claim_id"]:
kwargs.pop("claim_ids")
if {'claim_id', 'claim_ids'}.issubset(kwargs):
raise ValueError("Only 'claim_id' or 'claim_ids' is allowed, not both.")
if kwargs.pop('valid_channel_signature', False):