mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-08 21:06:28 +08:00
Fixes minor bug
This commit is contained in:
parent
9f8be69a4f
commit
13f44ae46a
2 changed files with 6 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.0.9-develop13
|
||||
4.0.9-develop14
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue