Don't try to download a blank name

This commit is contained in:
Jack 2016-01-24 00:26:41 -05:00
parent dacfc8b00a
commit 35f3887d79

View file

@ -556,8 +556,10 @@ class LBRYDaemon(xmlrpc.XMLRPC):
@return: {'stream_hash': hex string, 'path': path of download}
"""
d = self._download_name(name)
if name:
d = self._download_name(name)
else:
d = defer.succeed('No name provided')
return d
def xmlrpc_stop_lbry_file(self, stream_hash):