mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Fix flake8
This commit is contained in:
parent
2acb75f86f
commit
8206dfbade
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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. """
|
||||
|
|
Loading…
Reference in a new issue