Skip to content

Commit

Permalink
Validate empty items explicitly (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 authored Aug 27, 2023
1 parent ea4885a commit 80fd90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plexapi/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ def getWebURL(self, base=None, tab=None, key=None):

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):
Expand Down

0 comments on commit 80fd90b

Please sign in to comment.