[Core] Fix core.remove_torrents return value on error
This commit is contained in:
parent
c204b63653
commit
dbadb9b0a6
@ -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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user