From eb6a6eee0adb1ba0d57e214b666c5ba2492d2599 Mon Sep 17 00:00:00 2001 From: WithdewHua Date: Fri, 22 Sep 2023 21:26:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=8D=E5=AD=90=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E8=A2=AB=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/torrentremover/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/plugins/torrentremover/__init__.py b/app/plugins/torrentremover/__init__.py index 9744ad15..5ef8a74e 100644 --- a/app/plugins/torrentremover/__init__.py +++ b/app/plugins/torrentremover/__init__.py @@ -644,7 +644,7 @@ class TorrentRemover(_PluginBase): return None if self._torrentstates and torrent.state not in self._torrentstates: return None - if self._torrentcategorys and torrent.category not in self._torrentcategorys: + if self._torrentcategorys and torrent.category and torrent.category not in self._torrentcategorys: return None return { "id": torrent.hash,