Fix .__getattr__ of Settings class so it can be passed to copy.copy()
This commit is contained in:
parent
879ae1af68
commit
73438fb614
|
@ -240,8 +240,9 @@ class Settings(object):
|
|||
self.__class__.__name__, name))
|
||||
|
||||
def __getattr__(self, name):
|
||||
return self.values[name]
|
||||
|
||||
if "values" in self.__dict__ and name in self.values:
|
||||
return self.values[name]
|
||||
raise AttributeError
|
||||
|
||||
#############################################################################
|
||||
### Edges
|
||||
|
|
Loading…
Reference in New Issue