Skip to content

Commit 32d7cac

Browse files
Preserve fetchItem's failure mode when encountering invalid keys
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f794705 commit 32d7cac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plexapi/mixins/tv_parent_child.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ class TvParentChildMixin:
66

77
def _buildRelationKey(self, key, **kwargs):
88
""" Returns a key suitable for fetching parent/child TV items """
9+
if not key:
10+
return None
11+
912
args = {}
1013

1114
args['includeGuids'] = int(bool(kwargs.pop('includeGuids', True)))

0 commit comments

Comments
 (0)