fix pylint

This commit is contained in:
Jack Robison 2017-03-08 14:19:54 -05:00
parent fdcc5e6829
commit e29a91b69a

View file

@ -1641,14 +1641,13 @@ class Daemon(AuthJSONRPCServer):
True if deletion was successful, otherwise False True if deletion was successful, otherwise False
""" """
searchtype, value = get_lbry_file_search_value(kwargs) lbry_files = yield self._get_lbry_files(return_json=False, **kwargs)
lbry_files = yield self._get_lbry_files(searchtype, value, return_json=False)
if len(lbry_files) > 1: if len(lbry_files) > 1:
log.warning("There are %i files to delete, use narrower filters to select one", log.warning("There are %i files to delete, use narrower filters to select one",
len(lbry_files)) len(lbry_files))
result = False result = False
elif not lbry_files: elif not lbry_files:
log.warning("There is no file to delete for '%s'", value) log.warning("There is no file to delete")
result = False result = False
else: else:
lbry_file = lbry_files[0] lbry_file = lbry_files[0]