summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-29 19:13:52 +0100
committerDavid Baker <dave@matrix.org>2016-04-29 19:13:52 +0100
commit83618d719a437ac40f1d004689da4570eb436e9c (patch)
tree71f630f3c712e6d1b0a0617e4e1322dcebc4080f /synapse/config
parentUse the constant (diff)
downloadsynapse-83618d719a437ac40f1d004689da4570eb436e9c.tar.xz
Try imports in config
Diffstat (limited to '')
-rw-r--r--synapse/config/emailconfig.py7
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",