mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix module test
This commit is contained in:
@@ -37,10 +37,12 @@ class TelegramModule(_ModuleBase, _MessageBase):
|
||||
for client in self._clients.values():
|
||||
client.stop()
|
||||
|
||||
def test(self) -> Tuple[bool, str]:
|
||||
def test(self) -> Optional[Tuple[bool, str]]:
|
||||
"""
|
||||
测试模块连接性
|
||||
"""
|
||||
if not self._clients:
|
||||
return None
|
||||
for name, client in self._clients.items():
|
||||
state = client.get_state()
|
||||
if not state:
|
||||
|
||||
Reference in New Issue
Block a user