Fix .__getattr__ of Settings class so it can be passed to copy.copy()

This commit is contained in:
Florian Festi 2018-04-25 21:52:51 +02:00
parent 879ae1af68
commit 73438fb614
1 changed files with 3 additions and 2 deletions

View File

@ -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