From ba59e126cd890e8af69b4a0a5d674a04ae108967 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 10 Dec 2018 20:10:45 -0300 Subject: [PATCH] forward errors outside of uris on channel listing --- lbrynet/extras/daemon/Daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index 87edf3fc5..46a50e09d 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -2633,6 +2633,8 @@ class Daemon(AuthJSONRPCServer): results[chan_uri] = {"error": "%s is not a valid uri" % chan_uri} resolved = await self.wallet_manager.resolve(*valid_uris, page=page, page_size=page_size) + if 'error' in resolved: + return {'error': resolved['error']} for u in resolved: if 'error' in resolved[u]: results[u] = resolved[u]