Settings __getattr__ needs to raise AttributeError

This commit is contained in:
JonnyWong16 2020-11-21 14:49:21 -08:00
parent 82a9fce665
commit 387ab17072
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -21,7 +21,10 @@ class Settings(PlexObject):
def __getattr__(self, attr):
if attr.startswith('_'):
try:
return self.__dict__[attr]
except KeyError:
raise AttributeError
return self.get(attr).value
def __setattr__(self, attr, value):