From 226e9084c934fee83c18c5fd3bbc284d77b6710d Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 30 Apr 2016 23:43:02 -0400 Subject: [PATCH] return false from get_lbry_file if the file doesnt exist --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 12f17ca18..bbc1f1384 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1601,7 +1601,7 @@ class LBRYDaemon(jsonrpc.JSONRPC): if p.keys()[0] in ['name', 'sd_hash', 'file_name']: search_type = p.keys()[0] d = self._get_lbry_file(search_type, p[search_type], return_json=False) - d.addCallback(lambda l: _delete_file(l) if l else "Couldn't find LBRY file to delete") + d.addCallback(lambda l: _delete_file(l) if l else False) d.addCallback(lambda r: self._render_response(r, OK_CODE)) return d