mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Validate empty items explicitly (#1216)
This commit is contained in:
parent
ea4885acf7
commit
80fd90b687
1 changed files with 1 additions and 1 deletions
|
@ -1684,7 +1684,7 @@ class LibrarySection(PlexObject):
|
|||
|
||||
def _validateItems(self, items):
|
||||
""" Validates the specified items are from this library and of the same type. """
|
||||
if not items:
|
||||
if items is None or items == []:
|
||||
raise BadRequest('No items specified.')
|
||||
|
||||
if not isinstance(items, list):
|
||||
|
|
Loading…
Reference in a new issue