Revert "addToWatchlist raise NotFound exception for invalid media (#1401)" (#1402)

This reverts commit bf925c60e1.
This commit is contained in:
JonnyWong16 2024-04-19 11:18:25 -07:00 committed by GitHub
parent 3e752d5f27
commit d9be0e6f06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -963,9 +963,7 @@ class MyPlexAccount(PlexObject):
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):

View file

@ -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)