lbry-sdk/lbry/extras
belikor 6421cecafb daemon: fix --claim_id with lbrynet claim search
For some reason, when using `claim_search`
with `--claim_id`, the arguments dictionary will also
contain `claim_ids` with an empty list, even if we didn't specify it.
```
lbrynet claim search --claim_id=8945573bcfcb7f8276187dfbb93545eac4ebf71a
```

Using both `claim_id` and `claim_ids` will raise a `ValueError`
exception so the daemon won't return a valid result
even if the claim ID is in fact valid.

So if `claim_id` exists, we need to discard `claim_ids`
if it is empty, before proceeding with the rest of the code.

On the other hand, if `claim_ids` is used, and `claim_id` is absent,
there will be no problem as `claim_id` won't be added to the dictionary.
```
lbrynet claim search --claim_ids=8945573bcfcb7f8276187dfbb93545eac4ebf71a
```
2021-07-19 22:24:43 -05:00
..
daemon daemon: fix --claim_id with lbrynet claim search 2021-07-19 22:24:43 -05:00
__init__.py moved lbry up one level 2020-01-01 15:57:56 -05:00
cli.py remove loggly 2020-06-24 11:13:29 -04:00
system_info.py build_type.py -> build_info.py 2020-01-23 13:13:19 -05:00