Commit 057cf135 by José Padilla

Merge pull request #3815 from atombrella/keys_dict_3786

Fixes #3786
parents 69fb34b0 d4cdb21d
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment