mirror of
https://github.com/matrix-org/synapse.git
synced 2025-08-26 08:51:19 +02:00
Try imports in config
This commit is contained in:
parent
e7a76b5123
commit
83618d719a
@ -27,6 +27,13 @@ class EmailConfig(Config):
|
|||||||
self.email_enable_notifs = email_config.get("enable_notifs", False)
|
self.email_enable_notifs = email_config.get("enable_notifs", False)
|
||||||
|
|
||||||
if self.email_enable_notifs:
|
if self.email_enable_notifs:
|
||||||
|
# make sure we can import the required deps
|
||||||
|
import jinja2
|
||||||
|
import bleach
|
||||||
|
# prevent unused warnings
|
||||||
|
jinja2
|
||||||
|
bleach
|
||||||
|
|
||||||
required = [
|
required = [
|
||||||
"smtp_host",
|
"smtp_host",
|
||||||
"smtp_port",
|
"smtp_port",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user