Commit d4cdb21d by Mads Jensen

Fixes #3786

Minor fix for dictionary key lookup in settings file
parent dceb6867
...@@ -196,7 +196,7 @@ class APISettings(object): ...@@ -196,7 +196,7 @@ class APISettings(object):
return self._user_settings return self._user_settings
def __getattr__(self, attr): def __getattr__(self, attr):
if attr not in self.defaults.keys(): if attr not in self.defaults:
raise AttributeError("Invalid API setting: '%s'" % attr) raise AttributeError("Invalid API setting: '%s'" % attr)
try: 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