[Core] Fix core.remove_torrents return value on error

This commit is contained in:
bendikro 2016-04-19 19:42:49 +02:00 committed by Calum Lind
commit dbadb9b0a6

View file

@ -349,10 +349,10 @@ class Core(component.Component):
remove_data (bool): If True, also remove the downloaded data. remove_data (bool): If True, also remove the downloaded data.
Returns: Returns:
list of tuples: A list tuples containing all the errors, empty list if no errors occured list: An empty list if no errors occurred otherwise the list contains
tuple format: tuples of strings, a torrent ID and an error message. For example:
0: str: torrent-id
1: str: Error message [("<torrent_id>", "Error removing torrent")]
""" """
log.info("Removing %d torrents from core.", len(torrent_ids)) log.info("Removing %d torrents from core.", len(torrent_ids))