fix module test

This commit is contained in:
jxxghp
2024-09-12 15:13:58 +08:00
parent 9a62feb9a9
commit 53195457c7
12 changed files with 33 additions and 18 deletions
+3 -1
View File
@@ -43,10 +43,12 @@ class QbittorrentModule(_ModuleBase, _DownloaderBase):
def stop(self):
pass
def test(self) -> Tuple[bool, str]:
def test(self) -> Optional[Tuple[bool, str]]:
"""
测试模块连接性
"""
if not self._servers:
return None
for name, server in self._servers.items():
if server.is_inactive():
server.reconnect()