diff options
author | David Baker <dave@matrix.org> | 2016-04-29 19:13:52 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-29 19:13:52 +0100 |
commit | 83618d719a437ac40f1d004689da4570eb436e9c (patch) | |
tree | 71f630f3c712e6d1b0a0617e4e1322dcebc4080f /synapse/config | |
parent | Use the constant (diff) | |
download | synapse-83618d719a437ac40f1d004689da4570eb436e9c.tar.xz |
Try imports in config
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/emailconfig.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py index 1fa2bab3a0..e4d86255fa 100644 --- a/synapse/config/emailconfig.py +++ b/synapse/config/emailconfig.py @@ -27,6 +27,13 @@ class EmailConfig(Config): self.email_enable_notifs = email_config.get("enable_notifs", False) if self.email_enable_notifs: + # make sure we can import the required deps + import jinja2 + import bleach + # prevent unused warnings + jinja2 + bleach + required = [ "smtp_host", "smtp_port", |