Fixes minor bug

This commit is contained in:
bobokun 2024-02-18 10:31:34 -05:00
parent 9f8be69a4f
commit 13f44ae46a
2 changed files with 6 additions and 5 deletions

View file

@ -1 +1 @@
4.0.9-develop13
4.0.9-develop14

View file

@ -380,6 +380,11 @@ class Qbt:
def tor_delete_recycle(self, torrent, info):
"""Move torrent to recycle bin"""
try:
self.remove_torrent_files(torrent)
except ValueError:
logger.debug(f"Torrent {torrent.name} has already been removed from torrent files.")
if self.config.recyclebin["enabled"]:
tor_files = []
try:
@ -485,7 +490,3 @@ class Qbt:
self.torrent_list.remove(torrent)
except ValueError:
logger.debug(f"Torrent {torrent.name} has already been deleted from torrent list.")
try:
self.remove_torrent_files(torrent)
except ValueError:
logger.debug(f"Torrent {torrent.name} has already been removed from torrent files.")