更新 transmission.py

This commit is contained in:
jxxghp
2025-06-16 19:38:19 +08:00
committed by GitHub
parent bf52fcb2ec
commit 28552fb0ce
+1 -1
View File
@@ -134,7 +134,7 @@ class Transmission:
return None return None
try: try:
torrents, error = self.get_torrents(ids=ids, torrents, error = self.get_torrents(ids=ids,
status=["downloading", "download_pending", "stopped"], status=["downloading", "download_pending"],
tags=tags) tags=tags)
return None if error else torrents or [] return None if error else torrents or []
except Exception as err: except Exception as err: