mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
Settings __getattr__ needs to raise AttributeError
This commit is contained in:
parent
82a9fce665
commit
387ab17072
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ class Settings(PlexObject):
|
|||
|
||||
def __getattr__(self, attr):
|
||||
if attr.startswith('_'):
|
||||
return self.__dict__[attr]
|
||||
try:
|
||||
return self.__dict__[attr]
|
||||
except KeyError:
|
||||
raise AttributeError
|
||||
return self.get(attr).value
|
||||
|
||||
def __setattr__(self, attr, value):
|
||||
|
|
Loading…
Reference in a new issue