Skip to content

Commit 7dec995

Browse files
authored
Merge pull request #39 from adamruzicka/config
Fix dict object has no attribute value for plugin config
2 parents 5123752 + c06afb6 commit 7dec995

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

receptor/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,8 @@ def get_server_ssl_context(self):
443443
return None
444444

445445
def __getattr__(self, key):
446-
return self._config_options[key].value
446+
value = self._config_options[key]
447+
if type(value) is dict:
448+
return value
449+
else:
450+
return self._config_options[key].value

0 commit comments

Comments
 (0)