mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-09-20 07:16:04 +08:00
Fixes minor bug
This commit is contained in:
parent
9f8be69a4f
commit
13f44ae46a
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue