forked from MirrorHub/synapse
Nicer get() shorthand
This commit is contained in:
parent
6c8957be7f
commit
5048455965
1 changed files with 2 additions and 3 deletions
|
@ -23,9 +23,8 @@ class EmailConfig(Config):
|
||||||
def read_config(self, config):
|
def read_config(self, config):
|
||||||
self.email_enable_notifs = False
|
self.email_enable_notifs = False
|
||||||
|
|
||||||
email_config = config.get("email", None)
|
email_config = config.get("email", {})
|
||||||
if email_config:
|
self.email_enable_notifs = email_config.get("enable_notifs", True)
|
||||||
self.email_enable_notifs = email_config.get("enable_notifs", True)
|
|
||||||
|
|
||||||
if self.email_enable_notifs:
|
if self.email_enable_notifs:
|
||||||
required = [
|
required = [
|
||||||
|
|
Loading…
Reference in a new issue