Skip to content

Commit 322c342

Browse files
committed
use fetchItems instead, reduce redundancy
1 parent 4a7aac1 commit 322c342

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plexapi/server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def account(self):
187187
def agents(self):
188188
""" Returns the :class:`~plexapi.media.Agent` objects this server has available. """
189189
key = '/system/agents'
190-
data = self._server.query(key, self._server._session.get)
191-
return self.findItems(data)
190+
return self.fetchItems(key)
192191

193192
def createToken(self, type='delegation', scope='all'):
194193
"""Create a temp access token for the server."""

0 commit comments

Comments
 (0)