Skip to content

Commit

Permalink
Revert "addToWatchlist raise NotFound exception for invalid media (
Browse files Browse the repository at this point in the history
…#1401)" (#1402)

This reverts commit bf925c6.
  • Loading branch information
JonnyWong16 committed Apr 19, 2024
1 parent 3e752d5 commit d9be0e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions plexapi/myplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,7 @@ def addToWatchlist(self, items):
objects to be added to the watchlist.
Raises:
:exc:`~plexapi.exceptions.BadRequest`: When trying to add existing
media to the watchlist.
:exc:`~plexapi.exceptions.NotFound`: When trying to add invalid
:exc:`~plexapi.exceptions.BadRequest`: When trying to add invalid or existing
media to the watchlist.
"""
if not isinstance(items, list):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_myplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def test_myplex_watchlist(account, movie, show, artist):
account.removeFromWatchlist(movie)

# Test adding invalid item to watchlist
with pytest.raises(NotFound):
with pytest.raises(BadRequest):
account.addToWatchlist(artist)


Expand Down

0 comments on commit d9be0e6

Please sign in to comment.