Merge pull request #3815 from atombrella/keys_dict_3786

Fixes #3786
This commit is contained in:
José Padilla 2016-01-09 22:47:53 -04:00
commit 057cf13578

View File

@ -196,7 +196,7 @@ class APISettings(object):
return self._user_settings
def __getattr__(self, attr):
if attr not in self.defaults.keys():
if attr not in self.defaults:
raise AttributeError("Invalid API setting: '%s'" % attr)
try: