Skip to content

Commit 65d538c

Browse files
committed
Update doc string for get and getGuid with raises exception
1 parent 046b2ec commit 65d538c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plexapi/library.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,9 @@ def get(self, title):
456456
457457
Parameters:
458458
title (str): Title of the item to return.
459+
460+
Raises:
461+
:exc:`~plexapi.exceptions.NotFound`: The title is not found in the library.
459462
"""
460463
key = '/library/sections/%s/all?includeGuids=1&title=%s' % (self.key, quote(title, safe=''))
461464
return self.fetchItem(key, title__iexact=title)
@@ -467,6 +470,9 @@ def getGuid(self, guid):
467470
Parameters:
468471
guid (str): The external guid of the item to return.
469472
Examples: IMDB ``imdb://tt0944947``, TMDB ``tmdb://1399``, TVDB ``tvdb://121361``.
473+
474+
Raises:
475+
:exc:`~plexapi.exceptions.NotFound`: The guid is not found in the library.
470476
"""
471477
key = '/library/sections/%s/all?includeGuids=1' % self.key
472478
return self.fetchItem(key, Guid__id__iexact=guid)

0 commit comments

Comments
 (0)