0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 18:03:53 +01:00

Try imports in config

This commit is contained in:
David Baker 2016-04-29 19:13:52 +01:00
parent e7a76b5123
commit 83618d719a

View file

@ -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",