From b644125e936385b4e0348394fc236b2915917d1c Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 10 Apr 2017 21:32:41 -0400 Subject: [PATCH] return None for failed resolve uri --- lbrynet/lbrynet_daemon/Daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index 7ddd5c7b8..f52f8ca6a 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1451,7 +1451,10 @@ class Daemon(AuthJSONRPCServer): } """ - resolved = yield self.session.wallet.resolve_uri(uri) + try: + resolved = yield self.session.wallet.resolve_uri(uri) + except Exception: + resolved = None results = yield self._render_response(resolved) defer.returnValue(results)