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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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