From afac596a7b82dea3ad6363f8324268327c469961 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 9 Dec 2015 23:57:58 -0500 Subject: [PATCH] Update url handler --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 3 ++- lbrynet/lbrynet_daemon/LBRYURIHandler/LBRYURIHandler.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 44c01bf9c..7a636963e 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -288,8 +288,9 @@ class LBRYDaemon(xmlrpc.XMLRPC): 'path': os.path.join(stream.downloader.download_directory, stream.downloader.file_name)} for stream in self.downloads if stream.stream_hash == stream_hash]) + d.addErrback(lambda _: 'UnknownNameError') return d - + def main(): daemon = LBRYDaemon() diff --git a/lbrynet/lbrynet_daemon/LBRYURIHandler/LBRYURIHandler.py b/lbrynet/lbrynet_daemon/LBRYURIHandler/LBRYURIHandler.py index 2e1faa479..0f2623718 100644 --- a/lbrynet/lbrynet_daemon/LBRYURIHandler/LBRYURIHandler.py +++ b/lbrynet/lbrynet_daemon/LBRYURIHandler/LBRYURIHandler.py @@ -11,6 +11,7 @@ def main(args): if len(args) > 1: print 'Too many args', args + else: resolved = daemon.resolve_name(str(args[0])[7:]) daemon.download_name(str(args[0])[7:])