Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jul 31, 2023
1 parent a9b9360 commit a7edd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transmission_rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def add_torrent(
else:
kwargs["filename"] = torrent

return list(self._request(RpcMethod.TorrentAdd, kwargs, timeout=timeout).values())[0]
return next(iter(self._request(RpcMethod.TorrentAdd, kwargs, timeout=timeout).values()))

def remove_torrent(self, ids: _TorrentIDs, delete_data: bool = False, timeout: Optional[_Timeout] = None) -> None:
"""
Expand Down

0 comments on commit a7edd36

Please sign in to comment.