From dbadb9b0a6b8cb486ef9525fdd06df951a3c913a Mon Sep 17 00:00:00 2001 From: bendikro Date: Tue, 19 Apr 2016 19:42:49 +0200 Subject: [PATCH] [Core] Fix core.remove_torrents return value on error --- deluge/core/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index c865972dc..a11e472f9 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -349,10 +349,10 @@ class Core(component.Component): remove_data (bool): If True, also remove the downloaded data. Returns: - list of tuples: A list tuples containing all the errors, empty list if no errors occured - tuple format: - 0: str: torrent-id - 1: str: Error message + list: An empty list if no errors occurred otherwise the list contains + tuples of strings, a torrent ID and an error message. For example: + + [("", "Error removing torrent")] """ log.info("Removing %d torrents from core.", len(torrent_ids))