change Config.__init__

This commit is contained in:
Sergey Fedoruk 2018-12-30 22:56:02 +01:00 committed by Sergey Fedoruk
parent 74f05108d7
commit 0b728ade3a

View File

@ -30,8 +30,8 @@ DEFAULT_CONFIG = {
class Config(dict): class Config(dict):
def __init__(self, defaults=None, load_env=True, keep_alive=None): def __init__(self, defaults=None, load_env=True, keep_alive=None):
super().__init__(DEFAULT_CONFIG) defaults = defaults or {}
super().__init__(defaults or {}) super().__init__({**DEFAULT_CONFIG, **defaults})
self.LOGO = BASE_LOGO self.LOGO = BASE_LOGO