Fix rare case where details_key is None

This commit is contained in:
JonnyWong16 2020-12-06 18:55:45 -08:00
parent 0411449a70
commit 2cf0d7edab
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -95,7 +95,7 @@ class PlexObject(object):
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)