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:])