From 13f44ae46afd4327833e9bec9ab5d00a1379e3b8 Mon Sep 17 00:00:00 2001 From: bobokun Date: Sun, 18 Feb 2024 10:31:34 -0500 Subject: [PATCH] Fixes minor bug --- VERSION | 2 +- modules/qbittorrent.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 4250999..357c417 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.9-develop13 +4.0.9-develop14 diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index 58728aa..7ff9748 100755 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -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.")