Skip to content

Commit d9be0e6

Browse files
authored
Revert "addToWatchlist raise NotFound exception for invalid media (#1401)" (#1402)
This reverts commit bf925c6.
1 parent 3e752d5 commit d9be0e6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plexapi/myplex.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,9 +963,7 @@ def addToWatchlist(self, items):
963963
objects to be added to the watchlist.
964964
965965
Raises:
966-
:exc:`~plexapi.exceptions.BadRequest`: When trying to add existing
967-
media to the watchlist.
968-
:exc:`~plexapi.exceptions.NotFound`: When trying to add invalid
966+
:exc:`~plexapi.exceptions.BadRequest`: When trying to add invalid or existing
969967
media to the watchlist.
970968
"""
971969
if not isinstance(items, list):

tests/test_myplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def test_myplex_watchlist(account, movie, show, artist):
310310
account.removeFromWatchlist(movie)
311311

312312
# Test adding invalid item to watchlist
313-
with pytest.raises(NotFound):
313+
with pytest.raises(BadRequest):
314314
account.addToWatchlist(artist)
315315

316316

0 commit comments

Comments
 (0)