forked from LBRYCommunity/lbry-sdk
Merge branch 'zestyr-improve_get_error'
* zestyr-improve_get_error: Improve error message upon failing to resolve a claim
This commit is contained in:
commit
4e4eeae79c
2 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ at anytime.
|
||||||
* Renamed `lbrynet.lbrynet_daemon` to `lbrynet.daemon`
|
* Renamed `lbrynet.lbrynet_daemon` to `lbrynet.daemon`
|
||||||
* Initialize lbrynet settings when configuring an api client if they are not set yet
|
* Initialize lbrynet settings when configuring an api client if they are not set yet
|
||||||
* Updated lbryum imports
|
* Updated lbryum imports
|
||||||
|
* Improve error message when resolving a claim fails using the "get" command
|
||||||
*
|
*
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -1501,7 +1501,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
|
|
||||||
if not resolved or 'value' not in resolved:
|
if not resolved or 'value' not in resolved:
|
||||||
if 'claim' not in resolved:
|
if 'claim' not in resolved:
|
||||||
raise Exception("Nothing to download")
|
raise Exception("Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", "")))
|
||||||
else:
|
else:
|
||||||
resolved = resolved['claim']
|
resolved = resolved['claim']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue