Merge branch 'KamilPiekutowski-channels_not_get_able'

* KamilPiekutowski-channels_not_get_able:
  fixed the error when trying to perform get on channels
This commit is contained in:
Alex Grintsvayg 2018-02-12 16:40:50 -05:00
commit 01a9d96f28
2 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -1630,6 +1630,9 @@ 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:
if 'certificate' in resolved:
raise Exception("Cannot use get on channels")
else:
raise Exception( raise Exception(
"Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", ""))) "Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", "")))
else: else: