Skip to content
Snippets Groups Projects
Commit 83618d71 authored by David Baker's avatar David Baker
Browse files

Try imports in config

parent e7a76b51
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment