Suppress error for start_torrents toggle (#35799)

This commit is contained in:
J.P. Hutchins
2020-06-02 18:13:15 -07:00
committed by GitHub
parent 2f6ffe7068
commit 544094af21

View File

@@ -362,6 +362,8 @@ class TransmissionData:
def start_torrents(self): def start_torrents(self):
"""Start all torrents.""" """Start all torrents."""
if len(self.torrents) <= 0:
return
self._api.start_all() self._api.start_all()
def stop_torrents(self): def stop_torrents(self):