lbry-sdk/lbry/extras/daemon
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
..
migrator moved lbry up one level 2020-01-01 15:57:56 -05:00
__init__.py moved lbry up one level 2020-01-01 15:57:56 -05:00
analytics.py fallback to getting external ip from spv servers instead of internal apis 2021-01-21 16:20:53 -05:00
client.py moved lbry up one level 2020-01-01 15:57:56 -05:00
comment_client.py fix test 2021-01-04 18:04:06 -03:00
component.py updated imports after renaming component files 2020-01-03 03:08:15 -05:00
componentmanager.py wallet_status no longer fails if wallet component has not started 2020-03-31 16:20:13 -04:00
components.py propagate external ip changes from upnp component to dht node protocol 2021-07-08 03:46:05 -03:00
daemon.py daemon: fix --claim_id with lbrynet claim search 2021-07-19 22:24:43 -05:00
exchange_rate_manager.py exchange_rate_manager: raise exception if 'error' is in json_response 2021-07-19 13:41:49 -04:00
json_response_encoder.py drop value_type for support 2021-06-02 18:01:54 -03:00
security.py Origin: null no longer allowed 2020-06-03 14:19:16 -04:00
storage.py fix not knowing a torrent exists 2020-05-07 04:04:55 -03:00
undecorated.py moved lbry up one level 2020-01-01 15:57:56 -05:00