Skip to content

Commit

Permalink
Fix rare case where details_key is None
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Dec 7, 2020
1 parent 0411449 commit 2cf0d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plexapi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _buildDetailsKey(self, **kwargs):
or disable each parameter individually by setting it to False or 0.
"""
details_key = self.key
if hasattr(self, '_INCLUDES'):
if details_key and hasattr(self, '_INCLUDES'):
includes = {}
for k, v in self._INCLUDES.items():
value = kwargs.get(k, v)
Expand Down

0 comments on commit 2cf0d7e

Please sign in to comment.