Minor fix for dictionary key lookup in settings file
This commit is contained in:
Mads Jensen 2016-01-06 22:51:11 +01:00
parent dceb686700
commit d4cdb21de9

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: