summary refs log tree commit diff
diff options
context:
space:
mode:
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",