forked from LBRYCommunity/lbry-sdk
fixed the error when trying to perform get on channels
now it states that get cannot be used on channels closes #623 closes #1085
This commit is contained in:
parent
bd6bd24478
commit
bb2efdcc7c
2 changed files with 8 additions and 2 deletions
|
@ -11,6 +11,9 @@ at anytime.
|
||||||
### Security
|
### Security
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
### Fixed
|
||||||
|
* fixed `get` on channel now it returns error that informs of `get` not supporting channels
|
||||||
|
* the message that is displayed can be more descriptive, and it is open for discussion
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* Fixed improper parsing of arguments to CLI settings_set (https://github.com/lbryio/lbry/issues/930)
|
* Fixed improper parsing of arguments to CLI settings_set (https://github.com/lbryio/lbry/issues/930)
|
||||||
|
|
|
@ -1630,8 +1630,11 @@ 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(
|
if 'certificate' in resolved:
|
||||||
"Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", "")))
|
raise Exception("Cannot use get on channels")
|
||||||
|
else:
|
||||||
|
raise Exception(
|
||||||
|
"Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", "")))
|
||||||
else:
|
else:
|
||||||
resolved = resolved['claim']
|
resolved = resolved['claim']
|
||||||
txid, nout, name = resolved['txid'], resolved['nout'], resolved['name']
|
txid, nout, name = resolved['txid'], resolved['nout'], resolved['name']
|
||||||
|
|
Loading…
Reference in a new issue