Fix flake8

This commit is contained in:
JonnyWong16 2020-12-23 22:00:00 -08:00
parent 2acb75f86f
commit 8206dfbade
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ from urllib.parse import quote_plus
from plexapi import media, utils, video
from plexapi.base import Playable, PlexPartialObject
from plexapi.exceptions import BadRequest, NotFound
from plexapi.exceptions import BadRequest
@utils.registerPlexObject

View file

@ -504,7 +504,7 @@ class Show(Video):
return self.fetchItem(key, Season, title__iexact=title)
elif season:
return self.fetchItem(key, Season, index=season)
raise BadRequest('Missing argument: title or season is required')
raise BadRequest('Missing argument: title or season is required')
def seasons(self, **kwargs):
""" Returns a list of :class:`~plexapi.video.Season` objects in the show. """